So, inner matrices supposedly do not agree, but both H and H2 are 1x401 in a size. Here is my code w=-pi:(pi/200):pi; H=(0.5*cos(0.5.*w)+0.5*cos(1.5.*w)); H2=(exp(-i*1.5.*w)); HH=H*H2;
Can someone help me, I m new with this

回答 (1 件)

Torsten
Torsten 2016 年 7 月 12 日
編集済み: Torsten 2016 年 7 月 12 日

0 投票

You can't matrix-multiply a 1x401 array with a 1x401 array.
Maybe you mean componentwise multiplication:
HH=H.*H2;
Best wishes
Torsten.

カテゴリ

ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索

質問済み:

Ana
2016 年 7 月 12 日

編集済み:

2016 年 7 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by