How do you generate data at different sampling rates?

조회 수: 3 (최근 30일)
karen
karen 2013년 6월 11일
Hello. I know how to generate data using the function Randi but I don't know how to run, lets say, three data sets all sampling at different times.

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 6월 11일
Define your time vector
ts1=0.1;
ts2=0.01;
t1=0:ts1:10*ts1;
t2=max(t1)+ts2:ts2:max(t1)+10*ts2;
t=[t1 t2]
% Then generate your vector y
y=randi(numel(t),1,numel(t))
plot(t,y)
  댓글 수: 3
Azzi Abdelmalek
Azzi Abdelmalek 2013년 6월 11일
Why tic function?
karen
karen 2013년 6월 11일
It was out of curiosity.

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

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by