# Hysteresis Loop in MATLAB

by vinzie
Tags: hysteresis, loop, matlab
 P: 23 Hysteresis Loop in MATLAB You can use Langevin function to describe a hysteresis loop. Exact form of Langervin function you can find out in many textbooks on magnetism. $M(H)=M_s.[\cosh(c(H+\alpha M))-\dfrac{1}{c(H+αM)}]$ or use this $M(H)=M_s.\tanh(c(H+\alpha M))$ For the code, It is extremely easy, in ten lines, so try it.