From .m file to app designer
5 次查看(过去 30 天)
显示 更早的评论
I'm still new in app designer and I would request if you could change all the codes that needs to be changed in order to put my .m file into the app designer.
I want that whatever is plotted here to be seen in the two axes in the app designer. Here is the .m file:
hold off;
h=[1 0 1 1 0 0 0 1];
n=1;
l=length(h);
h(l+1)=1;
while n<=length(h)-1;
t=n-1:0.001:n;
if h(n) == 0
if h(n+1)==0
y=(t>n);
else
y=(t==n);
end
d=plot(t,y);grid on;
title('UNIPOLAR NRZ');
set(d,'LineWidth',2.5);
hold on;
axis([0 length(h)-1 -0.5 1.5]);
disp('zero');
else
if h(n+1)==0
y=(t<n)-0*(t==n);
else
y=(t<n)+1*(t==n);
end
d=plot(t,y);grid on;
title('UNIPOLAR NRZ');
set(d,'LineWidth',2.5);
hold on;
axis([0 length(h)-1 -0.5 1.5]);
disp('one');
end
n=n+1;
end
1 个评论
Rik
2021-1-14
This time I edited your question for you. Next time, please use the tools explained on this page to make your question more readable.
回答(1 个)
Cris LaPierre
2021-1-14
The best place to get started is the Getting Started with App Designer page. Once you have watched that, go to the doc page on developing apps. Complete the Create and Run a Simple App Using App Designer tutorial.
At that point, you should be able to get started with your own app. Have a go and let us know if you have any questions. The more specific the question, the better the answer you'll get.
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!