surface plotting with complex function
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
why with this code the surface ploting does not happen.? Where I am wrong with this code. With this code if write 'plot3(Th,Al,mag', then some 3d image is apperaing. But surface plotting is not happen. Pl help me.
f(theta,alpha)=1i*int(r,phi,0,2*pi); %% f is acomplex function
theta =linspace(0.1,4,20);
alpha =linspace(0.1,4,20);
[Th,Al] = ndgrid(theta, alpha);
F = f(Th,Al);
mag= abs(F);
surf(Th,Al,mag)
%grid on
1 Kommentar
Antworten (1)
Thiago Henrique Gomes Lobato
am 19 Jan. 2020
Maybe you need to add a shading to properly visualize the result?
surf(Th,Al,mag)
shading interp
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!