Borrar filtros
Borrar filtros

Plot Equation to 3d

3 visualizaciones (últimos 30 días)
jack carter
jack carter el 27 de Mzo. de 2017
Respondida: KSSV el 27 de Mzo. de 2017
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

Respuestas (1)

KSSV
KSSV el 27 de Mzo. de 2017
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)

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by