Plot 3D EM waves
45 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Wiqas Ahmad
il 2 Dic 2019
Risposto: Raj Gopal Mishra
il 25 Lug 2020
How can I plot this figure in matlab? I found some examples of EM plotting but axes were not shown there. I'd like also to mention the axes along with the fields
Risposta accettata
Raj Gopal Mishra
il 25 Lug 2020
t=0:pi/20:2*pi;
w=2;
ph=ones(size(t));
x=sin(w*t-k*ph);
plot3([t fliplr(t)], [x zeros(size(x))], [zeros(size(t)) zeros(size(t))],'r')
hold on
plot3([t fliplr(t)], [zeros(size(t)) zeros(size(t))], [x zeros(size(x))],'b')
hold off
grid
0 Commenti
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Line Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!