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 CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by