u(t)=sinc⁡(100t)and y(t)=cos(400πt) and x(t)=u(t)*y(t)

3 ビュー (過去 30 日間)
Mashrur Zawad
Mashrur Zawad 2022 年 9 月 10 日
コメント済み: Walter Roberson 2022 年 9 月 11 日
u(t)=sinc⁡(100t)and y(t)=cos(400πt) and x(t)=u(t)*y(t)
Now I need the code for plotting u(t) , |U(F)|, y(t), |Y(F)| , x(t) and |X(F)|
  3 件のコメント
Mashrur Zawad
Mashrur Zawad 2022 年 9 月 11 日
I have written the code like this but not sure is it okay or not
t=linspace(-10,10)
u=sinc(100*t)
subplot(6,1,1)
plot(t,u)
U=fft(u)
Uabs=abs(U)
subplot(6,1,2)
plot(t,fftshift(Uabs))
c=cos(400*pi*t)
subplot(6,1,3)
plot(t,c)
C=fft(c)
Cabs=abs(C)
subplot(6,1,4)
plot(t,fftshift(Cabs))
x=u.*c
subplot(6,1,5)
plot(t,x)
X=fft(x)
Xabs=abs(X)
subplot(6,1,6)
plot(t,fftshift(Xabs))
Walter Roberson
Walter Roberson 2022 年 9 月 11 日
We do not know. U(F) and similar are not defined in the posted question

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

回答 (1 件)

Walter Roberson
Walter Roberson 2022 年 9 月 10 日
syms t
u(t) = sinc(17*t)
u(t) = 
fplot(u)
  2 件のコメント
Mashrur Zawad
Mashrur Zawad 2022 年 9 月 11 日
It doesn't answer whole question
Walter Roberson
Walter Roberson 2022 年 9 月 11 日
It shows you how to construct functions, and it shows you how to plot functions. The only thing missing is the information that in MATLAB, π can be coded for symbolic use as
Pi = sym(pi);
and then refer to Pi .
Beyond that, there can be one or two additional steps depending whether each plot is to be in its own figure, or each plot is to be in its own axes (and if so should the 6 plots be 6 vertical, 6 horizontal, 3 vertical and 2 horizontal?) or if all of the plots should be on the same axes.
We are not here to answer people's homework questions: we are here to teach people how to use MATLAB.

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

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by