Diferent answers to same cmd
2 次查看(过去 30 天)
显示 更早的评论
I am trying to figure out Matlab. Tried the cmd shown in the attachment, get different response(see attachment)
5 个评论
采纳的回答
Ken
2025-2-21
1 个评论
Sam Chak
2025-2-21
Thank you for your response. One plausible explanation for the differing results is that your Aircraft Control Professor may have used functions from a decade-old version of MATLAB and the Control System Toolbox. Most professors I know do not frequently update their lecture slides. Therefore, if you are using more recent versions of MATLAB and the Control System Toolbox, you are likely obtaining different results.
The best approach would be to post the Control Problem Example from the lecture slides so that we can verify which result is correct or more accurate. In some rare cases, bugs can occur after MATLAB is updated.
- https://www.mathworks.com/matlabcentral/answers/2174027-simplify-does-not-work-with-all-argument
- https://www.mathworks.com/matlabcentral/answers/2170263-what-are-all-of-the-variables-in-the-workspace-on-answers
- https://www.mathworks.com/matlabcentral/answers/2154645-why-doesn-t-clear-all-clear-the-assumptions-from-the-symbolic-engine
更多回答(1 个)
Walter Roberson
2025-2-20
A=[-.01 .1 0 32.2;-0.4 -.8 180 0;0 -.003 -.5 0;0 0 1 0]
Your screen image shows you using -32.2 rather than 32.2
4 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!