Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Hysteresis Loop in MATLAB

  1. Jun 20, 2013 #1
    Hi there,

    Would anyone help me in simulating hysteresis loop in MATLAB?

    Thank You!
  2. jcsd
  3. Jun 20, 2013 #2


    User Avatar

    like a transformer hysteresis loop? without the hysteresis, what does the curve look like?
  4. Jun 22, 2013 #3
    I meant the hysteresis loop of a ferromagnetic substance
  5. Jul 30, 2013 #4
    You can use Langevin function to describe a hysteresis loop. Exact form of Langervin function you can find out in many textbooks on magnetism.

    [itex]M(H)=M_s.[\cosh(c(H+\alpha M))-\dfrac{1}{c(H+αM)}][/itex]

    or use this

    [itex]M(H)=M_s.\tanh(c(H+\alpha M))[/itex]

    For the code, It is extremely easy, in ten lines, so try it.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook