real and imag parts plots

4 ビュー (過去 30 日間)
Nawaf al raiqi
Nawaf al raiqi 2020 年 12 月 5 日
回答済み: Monisha Nalluru 2020 年 12 月 8 日
how i plot real part and imag part for the first 16 harmonics for x(t) ;(k = 0,1,2...,14,15). for this signal x(t) = cos(t/4)+cos(3*t/4)

回答 (1 件)

Monisha Nalluru
Monisha Nalluru 2020 年 12 月 8 日
For my understanding you want to plot the above equation for t=0,1,2,3,...,15
There is no imaginary part for above equation so
As an example code
t = linspace(0,15,16);
x = cos(t/4)+cos(3*t/4);
plot(t, x, 'b-', 'LineWidth', 2);
xlabel('t', 'FontSize', 20);
ylabel('x', 'FontSize', 20);

カテゴリ

Help Center および File ExchangeImage Filtering and Enhancement についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by