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)));
댓글 수: 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개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!