I'm trying to solve a system of non-linear equations. I was successful in solving 5 equations/5unkowns with the function fsolve. However, when I have more than 5, I get the error message:(adsbygoogle = window.adsbygoogle || []).push({});

??? Attempted to access r(17); index out of bounds because numel(r)=5.

How do I increase that size so that I can solve for 20 equations, instead of a mazimum of 5?

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

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

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

# MATLAB Help w/ fsolve

Loading...

Similar Threads for MATLAB Help fsolve |
---|

MATLAB MATLAB: forces acting on an object |

MATLAB Matlab histogram |

MATLAB Sovling Bernoulli's differential equation in matlab? |

MATLAB MATLab: Not enough inputs for nlinfit |

MATLAB Help needed to fix a matlab code |

**Physics Forums | Science Articles, Homework Help, Discussion**