How to represent RZ signal code grafic

Hey everyone. I need help represeting a grafic for a RZ signal (that means that the grafic when it haves value 1 it goes up to y=3 and half way point it goes down to the x axis. The 0 it is the same but it is -3)
Heres the code that i have to a user insert the 1´s and 0´s
bny = input('Insira o codigo a codificar: ' ,'s');
idx = ismember(bny,'01');
assert(all(idx),'Input must contain only 0s and 1s, but it contains %s',bny(~idx))
fprintf('Your code is: %s\n',bny)
V = [-3,3];
n = V(bny-'/')

Respuestas (0)

Categorías

Más información sobre Quadratic Programming and Cone Programming en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 9 de En. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by