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)

回答 (1 件)

madhan ravi
madhan ravi 2019 年 3 月 17 日

0 投票

hold on % after first surf() command

カテゴリ

タグ

質問済み:

2019 年 3 月 17 日

回答済み:

2019 年 3 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by