MATLAB code not running
9 ビュー (過去 30 日間)
古いコメントを表示
I am trying to run a very simple MATLAB script
A=[12,-3;-3,4]
C=[-9;9]
sol = inv(A)*C
When I click the run button, it doesn't do anything. When I press ctrl+enter, the run button changes into a pause button, but nothing shows up in the command window. My workspace shows I created a variable "i" with a value of 25 and a 1x100 double "x", but I never did, and it won't let me clear them. It also will not let me create a new script. How do I fix this?
0 件のコメント
採用された回答
Walter Roberson
2025 年 2 月 23 日
The most likely cause would be if you had a third-party function named inv
Check with
which -all inv
Experiment with using
restoredefaultpath; rehash toolboxcache
and trying again. If it does not start working, look more carefully for an inv.m function in your current directory.
その他の回答 (0 件)
参考
カテゴリ
Help Center および 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!