フィルターのクリア

how to find ascending and descending of hysteresis loop?

15 ビュー (過去 30 日間)
zaid
zaid 2014 年 5 月 17 日
コメント済み: Star Strider 2014 年 5 月 19 日
I had ploted tow vectors: current=[........]; flux=[.........], which is hysteresis loop. plot(current,flux) I want to find the ascending and descending points in loop. note: see the attachement

採用された回答

Star Strider
Star Strider 2014 年 5 月 17 日
編集済み: Star Strider 2014 年 5 月 17 日
This code:
s = load('Zaid_20140517.mat')
x = s.current;
y = s.flux;
z = linspace(min(x),max(x),length(x))
[cmin,cxix] = (min(x))
[cmax,cnix] = (max(x))
[fmin,fxix] = (min(y))
[fmax,fnix] = (max(y))
figure(1)
plot(x, y)
hold on
plot([cmin cmax], [fmin fmax], '+r', 'MarkerSize', 5, 'LineWidth',1.5)
hold off
grid
text(cmin-0.2,fmin-0.02, sprintf('(%.3f, %.3f)',cmin, fmin), 'FontSize',8, 'FontName', 'Consolas', 'FontWeight', 'bold')
text(cmax-0.4,fmax+0.02, sprintf('(%.3f, %.3f)',cmax, fmax), 'FontSize',8, 'FontName', 'Consolas', 'FontWeight', 'bold')
produces this plot:
  4 件のコメント
zaid
zaid 2014 年 5 月 19 日
thank you very much.
Star Strider
Star Strider 2014 年 5 月 19 日
Again, my pleasure!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with Curve Fitting Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by