title: how do i plot hysteresis using matlab?
body: <p>I want to model memristor using its equation in exponential mode using Matlab . My aim is to just get the hysteresis plot(i-v plot) in Matlab. the equation is like</p>
  
  <pre><code>i=x^n*b*sinh(av)+m(exp(gv)-1)
  x'=Af(x)h(v)
  </code></pre>
  
  <p>where <code>f(x)</code> is window function and <code>h(v)</code> is polynomial function, <code>A</code> is constant.</p>
  
  <pre><code>f(x)=1-(2x-1)^2
  h(v)=cv+dv^3; 
  </code></pre>
  
  <p><code>c</code> and <code>d</code> are constant  <code>c&lt;0</code> &amp; <code>d&gt;0</code>
  <code>a=2;</code> <code>b=0.01;</code> <code>g=4;</code> <code>n=4;</code> <code>A=25;</code> <code>m=0.001;</code></p>
  
  <p><code>x</code> is internal state of device..is it possible to get plot in matlab?
  I have tried in matlab it is showing errors</p>