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 Center および File ExchangeDebugging and Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by