How to use surf ?
古いコメントを表示
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) ?
回答 (1 件)
Azzi Abdelmalek
2014 年 5 月 10 日
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)
カテゴリ
ヘルプ センター および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!