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 次查看(过去 30 天)
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 个)

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by