フィルターのクリア

error using Matrix Dimensions

1 回表示 (過去 30 日間)
qusay hawari
qusay hawari 2015 年 1 月 16 日
コメント済み: qusay hawari 2015 年 1 月 16 日
Fs = 5000; Fc = 2000; t = [0:Fs-1]'/Fs; m = cos(2*pi*(20)*t); mhilb = conv((1/pi*t),m);
s = m.*cos(2*pi*Fc*t) + mhilb.*sin(2*pi*Fc*t); plot(t,s)
Error Error using .* Matrix dimensions must agree.
Please HELP!!!!

採用された回答

Henrik
Henrik 2015 年 1 月 16 日
If you format your code it's easier to read for people here.
The error message means that some of the matrices that you multiply are not the same size.
It's mhilb that's different, try
mhilb = conv((1/pi*t),m,'same');
  1 件のコメント
qusay hawari
qusay hawari 2015 年 1 月 16 日
Thanks it worked! ya i will format my codes next time(its my first time). :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by