Filter löschen
Filter löschen

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 Ansicht (letzte 30 Tage)
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 Kommentare
Jan
Jan am 24 Sep. 2012
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 am 24 Sep. 2012
I agree with Jan. Sharma Roy, please be careful next time. And hope your problem is solved now.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Sachin Ganjare
Sachin Ganjare am 24 Sep. 2012
Probabaly dimensions of your inputs x & w are not compatible.
Use below command for checking dimensions of x & w:
whos x w

Weitere Antworten (1)

Jan
Jan am 24 Sep. 2012
Matlab itself told you what's wrongs already: The dimensions of arrays must match, when they are multiplied elementwise. And obviously they don't.

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by