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

1 件のコメント

darova
darova 2019 年 12 月 2 日
Did you try plot3?

サインインしてコメントする。

 採用された回答

Raj Gopal Mishra
Raj Gopal Mishra 2020 年 7 月 25 日

1 投票

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

1 件のコメント

Antal Ürmös
Antal Ürmös 2024 年 10 月 31 日
What is "k" and what is its value?

サインインしてコメントする。

その他の回答 (1 件)

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by