How to convert a double data variable to a signal?
5 views (last 30 days)
Show older comments
Hi, i want to simulate a transmission of a PRBS signal, make some analysis and then interact with the data received from the transmission , but i'm having some troubles to make the transmission. How can i convert the data from the variable to a signal and then transmit the signal? do i need to use Simulink? here's the code :
clear all;
rng('default');
PRBS = randi([0 1],1000,1); %(1) Signal PRBS with 1000 bits
vtempo = (0:1/size(PRBS,1):1-1/size(PRBS,1))'; %(2) Time vector
Signal = [vtempo PRBS]; %(3) Signal on the time domain
plot(Signal(:,1),Signal(:,2));
Thanks for the attention.
0 Comments
Answers (0)
See Also
Categories
Find more on Multirate Signal Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!