フィルターのクリア

Please, how to plot for this code?

1 回表示 (過去 30 日間)
soe min aung
soe min aung 2021 年 1 月 25 日
回答済み: KSSV 2021 年 1 月 25 日
k = -2:0.1:2;
g = ((2*cos(2*k))-2)/(1i*k);
plot(k,g)

採用された回答

KSSV
KSSV 2021 年 1 月 25 日
Read about element by element operations.
k = -2:0.1:2;
g = ((2*cos(2*k))-2)./(1i*k); % use ./
plot(k,abs(g))
hold on
plot(k,real(g))
plot(k,imag(g))
legend('abs','real','imaginary')

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by