How to use surf ?
Mostrar comentarios más antiguos
I have a function f(i,j). How to plot a 3D graph (like surf) for f(i,j) vs x(i) vs y(j) ?
Respuestas (1)
Azzi Abdelmalek
el 10 de Mayo de 2014
i=1:10
j=1:10
[ii,jj]=meshgrid(i,j)
x=sin(ii)
y=cos(jj)
f=x.^2+y.^2
surf(x,y,f)
1 comentario
chaos
el 10 de Mayo de 2014
Categorías
Más información sobre Surface and Mesh Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!