![](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์ผ)
์ด์ ๋๊ธ ํ์
Ahsan Q
2020๋
11์ 10์ผ
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!