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
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
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

更多回答(1 个)

Jan
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.

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by