How to plot over another surface?

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)

Answers (1)

Tags

Asked:

on 17 Mar 2019

Answered:

on 17 Mar 2019

Community Treasure Hunt

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

Start Hunting!