![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/174023/image.png)
how can I draw this loop ?
9 次查看(过去 30 天)
显示 更早的评论
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 ?
0 个评论
采纳的回答
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/174023/image.png)
do you need this?
更多回答(2 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!