필터 지우기
필터 지우기

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]);

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 CenterFile Exchange에서 2-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