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 件のコメント
回答 (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!