Info
この質問は閉じられています。 編集または回答するには再度開いてください。
matrix dimensions must agree error
1 回表示 (過去 30 日間)
古いコメントを表示
getting matrix dimensions must agree error with this line of code:
k = A.*(p.^2);
1 件のコメント
Sriram Tadavarty
2020 年 4 月 20 日
編集済み: Sriram Tadavarty
2020 年 4 月 20 日
What are the values of A and p?
回答 (1 件)
Sriram Tadavarty
2020 年 4 月 20 日
Hi Roslyn,
I assume you provided an incompatible matrix size for the operation to be performed. You can look over this page for more insights of what might went wrong and will solve the issue. https://www.mathworks.com/help/matlab/matlab_prog/compatible-array-sizes-for-basic-operations.html
Hope this helps. Regards, Sriram
0 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!