フィルターのクリア

Creating a Burst Random signal in Matlab

15 ビュー (過去 30 日間)
Kaustubh Surdi
Kaustubh Surdi 2011 年 6 月 29 日
回答済み: DINTA 2015 年 3 月 19 日
Hi, I am trying to create a burst random signal in Matlab. I took a look at the rand command but I can't make a burst random signal using that command. Is there any other way that I can create it? Thanks in advance.

回答 (3 件)

Paulo Silva
Paulo Silva 2011 年 6 月 29 日
t=0:0.01:1;
h=stairs(t,randi([0 1],1,numel(t)));
axis([0 1 0 2])
YData=get(get(h,'children'),'YData'); %XData is the vector t
or
t=0:0.01:1;
h=stairs(t,rand(1,numel(t)));
axis([0 1 0 2])
YData=get(get(h,'children'),'YData'); %XData is the vector t

Kaustubh Surdi
Kaustubh Surdi 2011 年 6 月 30 日
Hey Paulo, Thanks for the prompt reply. Can you use random numbers instead of the random intergers? I will be using this signal as a force input at multiple points on my system so they have to be completely independent of each other. I tried using the 'rand' command but it gives me an error. Will really appreciate your help. Thanks.
  1 件のコメント
Paulo Silva
Paulo Silva 2011 年 6 月 30 日
done

サインインしてコメントする。


DINTA
DINTA 2015 年 3 月 19 日
matlab code for generating burst builder

カテゴリ

Help Center および File ExchangeSignal Generation and Preprocessing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by