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 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