Im getting an error in Matlab command window saying ' Matrix dimensions must agree' for x1=x.*w. Could sum1 say me wats wrong here??
1 回表示 (過去 30 日間)
古いコメントを表示
Im getting an error in Matlab command window saying ' Matrix dimensions must agree' for x1=x.*w. Could sum1 say me wats wrong here??
2 件のコメント
Jan
2012 年 9 月 24 日
Please use meaningful tags, because they are used to reciognized the category of the question. "Speech" is not useful here.
Kewl abbrevs like "sum1" are not meaningful for non-native speakers. Please try to write as simple as possible in standard English. Thanks!
Sachin Ganjare
2012 年 9 月 24 日
I agree with Jan. Sharma Roy, please be careful next time. And hope your problem is solved now.
採用された回答
Sachin Ganjare
2012 年 9 月 24 日
Probabaly dimensions of your inputs x & w are not compatible.
Use below command for checking dimensions of x & w:
whos x w
0 件のコメント
その他の回答 (1 件)
Jan
2012 年 9 月 24 日
Matlab itself told you what's wrongs already: The dimensions of arrays must match, when they are multiplied elementwise. And obviously they don't.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!