How to convert a double data variable to a signal?

5 次查看(过去 30 天)
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 个)

类别

Help CenterFile Exchange 中查找有关 Multirate Signal Processing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by