Inner matrix dimensions must agree

I am getting this error: Error using *. Inner matrix dimensions must agree. Can anyone help me solve this??
E(:,i) = filter(1,[1 zeros(1,P-1) -1],zeros(L,1),b*ebuf(F-P+1:F));

回答 (1 件)

Guillaume
Guillaume 2016 年 12 月 13 日
編集済み: Guillaume 2016 年 12 月 13 日

0 投票

The only matrix multiplication in your line is
b*ebuf(F-P+1:F)
ebuf(F-P+1:F) is clearly going to be a vector and since you get an error b is clearly not scalar.
My guess is that you meant
b .* ebuf(F-P+1:F)
and learn the difference between array and matrix operations

カテゴリ

ヘルプ センター および File ExchangeOperators and Elementary Operations についてさらに検索

タグ

質問済み:

2016 年 12 月 13 日

編集済み:

2016 年 12 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by