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)));
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!