plotting the magnitude of a complex fraction

1 回表示 (過去 30 日間)
Maxime Michel
Maxime Michel 2019 年 3 月 14 日
編集済み: madhan ravi 2019 年 3 月 14 日
I have a function
H = 1/(1 - 0.5i * exp(-i*2*pi*f)); % In Matlab, f would be defined as: f = 0:0.1:2*pi;
I need to be able to plot the magnitude of H(f) but Matlab won't allow me to define H saying:
%Error using /, Matrix dimensions must agree
What am I doing wrong ?

採用された回答

madhan ravi
madhan ravi 2019 年 3 月 14 日
  2 件のコメント
Maxime Michel
Maxime Michel 2019 年 3 月 14 日
Could you explain why this works and not the normal divisor symbol ?
madhan ravi
madhan ravi 2019 年 3 月 14 日
編集済み: madhan ravi 2019 年 3 月 14 日

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by