How to represent RZ signal code grafic
1 view (last 30 days)
Show older comments
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-'/')
0 Comments
Answers (0)
See Also
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!