Plot Equation to 3d
1 回表示 (過去 30 日間)
古いコメントを表示
how to plot this function as 3d in matlab? I have tried ezplot and fplot functions, but they are not working for. Any suggestion will be quiet helpful. I want to plot the values of A, phi and R on 3d-graph. thankyou
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/162196/image.jpeg)
0 件のコメント
回答 (1 件)
KSSV
2017 年 3 月 27 日
N = 50 ;
B = rand ; % a constant
a =linspace(0,4,N) ;
phi = linspace(0,2,N)*pi/180 ;
[A, Phi] = meshgrid(a,phi) ;
R = A.*sin(Phi/2)./(B*cos(Phi/2).^2) ;
surf(A,Phi,R)
0 件のコメント
参考
カテゴリ
Help Center および 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!