Matlab 2009a code to plot message bits as rectangular pulse
显示 更早的评论
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
2011-6-24
0 个投票
Consider using stairs()
2 个评论
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
2011-6-26
类别
在 帮助中心 和 File Exchange 中查找有关 Hilbert and Walsh-Hadamard Transforms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!