When running the following code on Matlab:(adsbygoogle = window.adsbygoogle || []).push({});

>> 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!

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Error code in Matlab

Loading...

Similar Threads - Error code Matlab | Date |
---|---|

Mathematica Errors when plotting but not when evaluating | Tuesday at 12:12 PM |

Excel Error Bars | Nov 26, 2017 |

Using Maxima to plot error in Fourier series | Nov 5, 2017 |

Matlab 2D plotting error help please | Aug 28, 2016 |

(TexnicCenter) How to locate errors in code | Nov 22, 2011 |

**Physics Forums - The Fusion of Science and Community**