Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Please let me know why this error is popping up even when I use element wise operator??

1 vue (au cours des 30 derniers jours)
Aqeel Mohammed Abdul Mageeth
Clôturé : MATLAB Answer Bot le 20 Août 2021
c=(kb^4)/(2*(pi^2)*vd*(h^3)*A*exp(-td/(3.*T)));
T here is an array while all the other parameters are constant. I'm getting the following error in the statement
Error using /
Matrix dimensions must agree.
Error in hw4 (line 11)
c=(kb^4)/(2*(pi^2)*vd*(h^3)*A*exp(-td/(3.*T)));
  1 commentaire
per isakson
per isakson le 5 Nov 2017
Modifié(e) : per isakson le 5 Nov 2017
What does
whos
show?

Réponses (1)

Walter Roberson
Walter Roberson le 5 Nov 2017
You did not use elementwise division with the expression involving T. You have td/( instead of td./(

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!

Translated by