warning when solving nonlinear equations with 'solve'

1 view (last 30 days)
Hi everyone, Quick question: I'm trying to solve a nonlinear system of 30 equations in 30 unknowns using the solve function, and I continually get the following warning:
Warning: 26 equations in 29 variables. New variables might be introduced.
How should I interpret this in light of the fact that I'm specifying 30 equations and variables as inputs into solve?
Thanks in advance, John

Accepted Answer

Star Strider
Star Strider on 15 Apr 2014
Two possibilities come quickly to mind:
  1. You erred in coding them (look carefully and consider prettyprint), especially since it counts 29 variables and you mention there should be 30,
  2. The Symbolic Math Toolbox is simplifying them and eliminating some equations, so your simplifying them first could provide information.
Beyond that I have no idea.

More Answers (0)

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!