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

조회 수: 5 (최근 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에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by