problem facing with parametric 3D plot

1 view (last 30 days)
Wajahat
Wajahat on 20 Aug 2017
Edited: Wajahat on 22 Aug 2017
clear all;
close all;
N=-10:.1:10;
q=-10:.1:10;
t=.1;
i=1;
p=.8;
mu1=(-1.24);
m1=-(1+i.*p./mu1).^N.*exp(i.*mu1.*t./2);
m2=(1-i.*p./mu1).^N.*exp(-i.*mu1.*t./2);
q1=q+i.*mu1.*((m1.^2-m2.^2)./(m1.^2+m2.^2));
r2=2*i.*mu1.*((m1.*m2))./(m1.^2+m2.^2);
plot((q1),(r2),'linewidth',1);
How can I plot the solutions q1 and r2 in 3D. It work very well when i plot the solutions q1 and r2 in 2D for t=1. But in 3D i am not able to plot these solutions in 3D. I have been using 'fsurf' command but it doesn't work.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!