Filter löschen
Filter löschen

how to find ascending and descending of hysteresis loop?

15 Ansichten (letzte 30 Tage)
zaid
zaid am 17 Mai 2014
Kommentiert: Star Strider am 19 Mai 2014
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

Akzeptierte Antwort

Star Strider
Star Strider am 17 Mai 2014
Bearbeitet: Star Strider am 17 Mai 2014
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 Kommentare
zaid
zaid am 19 Mai 2014
thank you very much.
Star Strider
Star Strider am 19 Mai 2014
Again, my pleasure!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with Curve Fitting Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by