How to troubleshoot solver when wrong variable is showing up?
古いコメントを表示
When using solver, I am getting a variable that is not in my equation in the solution. What should I troubleshoot?
I am solving an 5 degree polynomial with t as the only variable, and instead of one answer (there should only be one), there are five answers that include a 'z' (yes,'z', that's not a typo).
3 件のコメント
Rik
2017 年 9 月 11 日
What command are you using? This sounds like a syntax error, but I'dd rather fix your code than try to write an example that you then need to translate to your situation.
Suzie Oman
2017 年 9 月 11 日
Rik
2017 年 9 月 12 日
Are all those p values supposed to be syms as well? What code are you using to define your variables? A good strategy is to try to condens your problem to the smallest piece of code that reproduces the problem: a MWE (or MFE, minimal failing example). Then we can run your code and try to fix it that way (and see if we can reproduce it on our OS release combination).
(note that Q is unused and you haven't defined lhs in your comment above)
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!