create a time vector

조회 수: 6 (최근 30일)
fernando alveri
fernando alveri 2016년 3월 9일
댓글: Star Strider 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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by