フィルターのクリア

How can I multiply 2 signals?

41 ビュー (過去 30 日間)
RandomChikiBum
RandomChikiBum 2021 年 12 月 26 日
回答済み: DGM 2021 年 12 月 26 日
I tried to plot the graph of product of 2 signals (Cosine and and decaying exponential) but am getting an error
x = (-100 :.05 :100);
y = cos(2*pi*x).exp(-x);
Dot indexing is not supported for variables of this type.
plot(x,y);
figure ;
title('Task-4 Cosine mutliplied with decaying exponential signal');
xlabel('Time');
ylabel('Amplitude');
  1 件のコメント
RandomChikiBum
RandomChikiBum 2021 年 12 月 26 日
編集済み: RandomChikiBum 2021 年 12 月 26 日
And how can I multiply the power of the exponent with a constant?
like e^(-5x) or using decimal numbers?

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

採用された回答

DGM
DGM 2021 年 12 月 26 日
Something like
x = (-1 :.05 :1); % pay attention to scale and limits
y = cos(2*pi*x).*exp(-5*x); % elementwise multiply with .*
plot(x,y);
title('Task-4 Cosine mutliplied with decaying exponential signal');
xlabel('Time');
ylabel('Amplitude');

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by