Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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

1 回表示 (過去 30 日間)
Aqeel Mohammed Abdul Mageeth
Aqeel Mohammed Abdul Mageeth 2017 年 11 月 5 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 件のコメント
per isakson
per isakson 2017 年 11 月 5 日
編集済み: per isakson 2017 年 11 月 5 日
What does
whos
show?

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 11 月 5 日
You did not use elementwise division with the expression involving T. You have td/( instead of td./(
  2 件のコメント
John D'Errico
John D'Errico 2017 年 11 月 5 日
Also here: (kb^4)/
Aqeel Mohammed Abdul Mageeth
Aqeel Mohammed Abdul Mageeth 2017 年 11 月 5 日
thanks guys .Now it works perfect.:)

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by