Borrar filtros
Borrar filtros

how can I draw this loop ?

28 visualizaciones (últimos 30 días)
murat
murat el 5 de Dic. de 2013
Comentada: murat el 5 de Dic. de 2013
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 ?

Respuesta aceptada

sixwwwwww
sixwwwwww el 5 de Dic. de 2013
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 comentario
murat
murat el 5 de Dic. de 2013
excuse me I had an important error thank you very much

Iniciar sesión para comentar.

Más respuestas (2)

Andrei Bobrov
Andrei Bobrov el 5 de Dic. de 2013
plot([a,-a],[b,-b]);

Omair
Omair el 5 de Dic. de 2013
plot(a,b)
hold on
plot(-a,-b)
  3 comentarios
Omair
Omair el 5 de Dic. de 2013
This is what i get when i execute the above command.
murat
murat el 5 de Dic. de 2013
excuse me I had an important error thank you very much

Iniciar sesión para comentar.

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by