How do you generate data at different sampling rates?
古いコメントを表示
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
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 件のコメント
karen
2013 年 6 月 11 日
Azzi Abdelmalek
2013 年 6 月 11 日
Why tic function?
karen
2013 年 6 月 11 日
カテゴリ
ヘルプ センター および File Exchange で Deep Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!