matrix dimensions must agree error
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
getting matrix dimensions must agree error with this line of code:
k = A.*(p.^2);
1 commentaire
Sriram Tadavarty
le 20 Avr 2020
Modifié(e) : Sriram Tadavarty
le 20 Avr 2020
What are the values of A and p?
Réponses (1)
Sriram Tadavarty
le 20 Avr 2020
0 votes
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
Cette question est clôturée.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!