sum error

2 visualizaciones (últimos 30 días)
Rafael Freire
Rafael Freire el 7 de Feb. de 2012
Editada: Matt J el 2 de Oct. de 2013
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 comentario
Walter Roberson
Walter Roberson el 7 de Feb. de 2012
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)

Iniciar sesión para comentar.

Respuestas (1)

roopa bayareddy
roopa bayareddy el 7 de Feb. de 2012
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)

Categorías

Más información sobre Debugging and Analysis en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by