sum error

조회 수: 2 (최근 30일)
Rafael Freire
Rafael Freire 2012년 2월 7일
편집: Matt J 2013년 10월 2일
Why i got this error?
shiftedC=-0.4
??? Error using ==> plus
Matrix dimensions must agree.
Error in ==> recog_pad_hmqc at 26
P1(:,1)=shiftedC+P1(:,1);
i only what to sum a value to the vector this part is inside a function .
  댓글 수: 1
Walter Roberson
Walter Roberson 2012년 2월 7일
At the command window, please end the command
dbstop if error
and then run the program. When it stops with the error, please check
size(shiftedC)
size(P1)

댓글을 달려면 로그인하십시오.

답변 (1개)

roopa bayareddy
roopa bayareddy 2012년 2월 7일
Ofcourse for signal addition dimensions must agree.....am not getting your phrase ''sum a value to the vector''....if you wanna scale each element you can go for .*(element mult)...
or otherwise try shiftedC=-.4*ones(enter demesion)+p1(:,1)

카테고리

Help CenterFile Exchange에서 Debugging and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by