![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/408960/image.jpeg)
Plotting a signal sin(2*pi*f*t) and obtaining a discrete periodic signal.
16 ビュー (過去 30 日間)
古いコメントを表示
Given:
Discreet signal: sin((2𝜋f/fs)∙n∙T)for n=0,1,2,..
f=26;
fs=200;
n=2;
dt=0.005;
t=n*dt;
Required:
T==> I have to pick an integer value of T>1 such that sin((2𝜋f/fs)∙n∙T)is a periodic discrete signal.
How to graph periodic continuous signal sin(2𝜋ft) and periodic discrete signal sin((2𝜋f/fs)∙n∙T)
0 件のコメント
採用された回答
Setsuna Yuuki.
2020 年 11 月 10 日
You can use plot to graph continuous signal, and stem to graph discrete signal.
For example:
t = 0:6e-2:1;
signal = sin(2*pi*t);
subplot(2,1,1)
stem(t,signal)
subplot(2,1,2)
plot(t,signal)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/408960/image.jpeg)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Subplots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!