I'm trying to plot a unipolar NRZ using app designer and there seems to be an error while try to press the push button. Can you help me find a way to solve this?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
value = app.Button.Value;
clc;clear;
%NRZ unipolar line coding
n=[1 0 1 0];
%NRZ Pulse shaping
i=1;
t=0:0.001:length(n);
for j=1:length(t)
if t(j)<=i
y(j)=n(i);
else
i=i+1;
end
end
plot(app.UIAxes,t,y);
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!