How to convert a double data variable to a signal?

3 views (last 30 days)
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.

Answers (0)

Community Treasure Hunt

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

Start Hunting!