The discussion focuses on simulating a hysteresis loop in MATLAB, specifically for ferromagnetic substances. The Langevin function is suggested as a method to describe the hysteresis loop, with two forms provided for the magnetization equation: M(H)=M_s.[cosh(c(H+αM))−1/(c(H+αM))] and M(H)=M_s.tanh(c(H+αM)). It is noted that coding this simulation in MATLAB is straightforward and can be accomplished in about ten lines of code.
#1
vinzie
19
0
Hi there,
Would anyone help me in simulating hysteresis loop in MATLAB?
As you can see from the image here, when I graph the 2d graph of y = 5sin(1/x), it comes out like I'd expect. However, when I graph it in a 3d graph, it doesn't look right at all. Can someone tell me why it isn't displaying right, or is it and I'm just missing something when I add the z axis?