matrix dimensions must agree error
信息
此问题已关闭。 请重新打开它进行编辑或回答。
显示 更早的评论
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
0 个投票
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!