Reputation: 285
In Matlab, I have a matrix M
with values M(i,j)
. Each M(i,j)
represents the height at the coordinates (i,j)
. I would like to visualize this landscape.
How can I visualize in 3d the plot with axes (i,j,M(i,j))
?
Upvotes: 0
Views: 75
Reputation: 3687
You can use for example:
mesh(M)
%or
meshc(M)
%or
bar3(M)
and others.
Upvotes: 1