- #1
MathewsMD
- 433
- 7
When running the following code on Matlab:
>> y(i) = y(i-1) + (0.5 * y.^3 * exp(t^2 + t))*h
I get the error:
? Error using ==> mpower
Matrix must be square.
It seems fairly simple but I'm not quite sure what I'm overlooking. Any help with regards to what I may be doing wrong would be greatly appreciated!
>> y(i) = y(i-1) + (0.5 * y.^3 * exp(t^2 + t))*h
I get the error:
? Error using ==> mpower
Matrix must be square.
It seems fairly simple but I'm not quite sure what I'm overlooking. Any help with regards to what I may be doing wrong would be greatly appreciated!