How to represent RZ signal code grafic

1 view (last 30 days)
António Pereira
António Pereira on 9 Jan 2019
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-'/')

Answers (0)

Categories

Find more on Computational Geometry in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!