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

답변 (1개)

KSSV
KSSV 2017년 3월 27일

0 개 추천

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)

카테고리

도움말 센터File Exchange에서 Line Plots에 대해 자세히 알아보기

질문:

2017년 3월 27일

답변:

2017년 3월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by