I'm trying to write a function in matlab but I don't quite know if it is working. In the equation line i have:
xdot(2) = N_h * x;
to signify: $$\frac{dy}{dt} = N_h \cdot x$$
But should the matlab code be:
xdot(2) = Nh * x
Or is the first one correct? Or are they both correct?
Quick enough, this test script:
works on Matlab R2009a, this is it prints $$1$$ $$2$$
I'm not really sure if
M_hmay be recommnded, butMhandM_hare both valid names for a variable or constant.