フィルターのクリア

how can I draw this loop ?

27 ビュー (過去 30 日間)
murat
murat 2013 年 12 月 5 日
コメント済み: murat 2013 年 12 月 5 日
hey guys, I have to draw a hysteresis loop like this
I have values of the loop. for example;
a=[48 52 58 73 85 103 135 193 80 42 2 -18 -29 -40 -45 -48]
b=[0 0.2 0.4 0.6 0.7 0.8 0.9 1 0.95 0.9 0.8 0.7 0.6 0.4 0.2 0]
how can I draw this loop ?

採用された回答

sixwwwwww
sixwwwwww 2013 年 12 月 5 日
try this:
a = [48 52 58 73 85 103 135 193 80 42 2 -18 -29 -40 -45 -48];
b = [0 0.2 0.4 0.6 0.7 0.8 0.9 1 0.95 0.9 0.8 0.7 0.6 0.4 0.2 0];
a = [a, -a];
b = [b, -b];
plot(a, b)
it gives
do you need this?
  1 件のコメント
murat
murat 2013 年 12 月 5 日
excuse me I had an important error thank you very much

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

その他の回答 (2 件)

Andrei Bobrov
Andrei Bobrov 2013 年 12 月 5 日
plot([a,-a],[b,-b]);
  1 件のコメント
murat
murat 2013 年 12 月 5 日

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


Omair
Omair 2013 年 12 月 5 日
plot(a,b)
hold on
plot(-a,-b)
  3 件のコメント
Omair
Omair 2013 年 12 月 5 日
This is what i get when i execute the above command.
murat
murat 2013 年 12 月 5 日
excuse me I had an important error thank you very much

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

カテゴリ

Help Center および 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