when i run this code i'm getting and error stating "matrix dimensions must agree",how can i solve this error?

1 回表示 (過去 30 日間)
frame=y(2001:2001+fsize);
>> plot(frame);
>> plot(frame.*hamming(length(frame)));

採用された回答

Bish Erbas
Bish Erbas 2018 年 9 月 27 日
Add transpose to first line:
frame=y(2001:2001+fsize)';
Element-by-element multiplication works only if both vectors are horizontal/vertical.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by