How to convert a double data variable to a signal?

5 ビュー (過去 30 日間)
Flávio André Nogueira Sampaio
Flávio André Nogueira Sampaio 2015 年 11 月 3 日
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 Center および File ExchangeMultirate Signal Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by