So here is my code
N=6; V is a matrix which is 6x6
[X, Y] = meshgrid (1: N, 1: N);
surf (X, Y, V);
With this code, one plots in Matlab a scalar field over a square surface. How to plot over another surface (triangle, for example)

Antworten (1)

madhan ravi
madhan ravi am 17 Mär. 2019

0 Stimmen

hold on % after first surf() command

Tags

Gefragt:

am 17 Mär. 2019

Beantwortet:

am 17 Mär. 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by