Error using / Matrix dimensions must agree.
16 ビュー (過去 30 日間)
古いコメントを表示
P= 220;
n= 2;
V= linspace(0.1,10,21);
a= 5.536;
b= 0.03049;
R= 0.08314472;
T_i= ((P*V)/(n*R));
T_vw= P+((n.^2).*a)/(V.^2).*((V-n.*b)./(n.*R));
Results = [P', T_i', T_vw'];
char(' P Ti Tvw',...
num2str ([P,T_i,T_vw], '%12.4f'))
Command window display
>> Firstmatlab1b
Error using /
Matrix dimensions must agree.
Error in Firstmatlab1b (line 10)
T_vw= P+((n.^2).*a)/(V.^2).*((V-n.*b)./(n.*R));
0 件のコメント
回答 (2 件)
Azzi Abdelmalek
2014 年 9 月 13 日
You should replace / by ./
2 件のコメント
Azzi Abdelmalek
2014 年 9 月 13 日
編集済み: Azzi Abdelmalek
2014 年 9 月 13 日
Why you don't try to fix the problem? the error message says there is a problem with your concatenation.
Bharati Nelligani
2015 年 9 月 3 日
As there is a program for repmap in matlab release notes when i tried to execute i am getting an error that Error using + Matrix dimensions must agree. so please tell me what to do and help me with this.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!