Matlab 2009a code to plot message bits as rectangular pulse

2 ビュー (過去 30 日間)
Oj.Williams
Oj.Williams 2011 年 6 月 24 日
I don't know matlab, just started reading the tutorial, but i need it for my final year project. My question is: i need a matlab code to generate random message bits and plot the waveform of the message as rectangular pulse. your assistance would be valued.

回答 (1 件)

Walter Roberson
Walter Roberson 2011 年 6 月 24 日
Consider using stairs()
  2 件のコメント
Paulo Silva
Paulo Silva 2011 年 6 月 24 日
n=100;
a=randi([0 1],n,1)
stairs(0:n-1,a)
axis([0 n 0 2])
Oj.Williams
Oj.Williams 2011 年 6 月 26 日
Thanks so much, its just the code i need for a start.

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

カテゴリ

Help Center および File ExchangeHilbert and Walsh-Hadamard Transforms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by