Effacer les filtres
Effacer les filtres

how to find ascending and descending of hysteresis loop?

15 vues (au cours des 30 derniers jours)
zaid
zaid le 17 Mai 2014
Commenté : Star Strider le 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

Réponse acceptée

Star Strider
Star Strider le 17 Mai 2014
Modifié(e) : Star Strider le 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 commentaires
zaid
zaid le 19 Mai 2014
thank you very much.
Star Strider
Star Strider le 19 Mai 2014
Again, my pleasure!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with Curve Fitting Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by