create a time vector

6 次查看(过去 30 天)
fernando alveri
fernando alveri 2016-3-9
hello,i have an example which is in following file,i need to answer of this question to the improve my homework,i will be happy if someone help me,thank you

回答(1 个)

Star Strider
Star Strider 2016-3-9
A 10 kHz sampling frequency has a sampling interval of:
Fs = 1E4; % Sampling Frequency (Hz)
Ts = 1/Fs; % Sampling Interval (sec)
With that hint, I leave the rest to you.
  2 个评论
fernando alveri
fernando alveri 2016-3-9
编辑:fernando alveri 2016-3-9
thank u sir for answer,i'm dealing on my question and i think,a and b are done but i havent any idea about c and d t=(0:0.01:2); x=2*sin(2*pi*100*t)+cos(2*pi*500*t); randn('state',0); y=x+0.4*randn(size(t)); plot(t(1:100),y(1:100)) plot(t(1:500),y(1:500)) can you check it for me pls?
Star Strider
Star Strider 2016-3-9
Look up the definition of the Dirac delta function to do those. Remember, it has an area of 1, so I would define it as having a duration of one time step (since you are dealing in a discrete — not continuous — system), and then figure out from that what the amplitude should be.
Note that ‘c’ and ‘d’ differ only in where the delta function is plotted. Everything else stays the same.

请先登录,再进行评论。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by