create a time vector

6 views (last 30 days)
fernando alveri
fernando alveri on 9 Mar 2016
Commented: Star Strider on 9 Mar 2016
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

Answers (1)

Star Strider
Star Strider on 9 Mar 2016
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 Comments
fernando alveri
fernando alveri on 9 Mar 2016
Edited: fernando alveri on 9 Mar 2016
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 on 9 Mar 2016
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.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!