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?
2 次查看(过去 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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File 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!