From .m file to app designer

10 vues (au cours des 30 derniers jours)
Crish
Crish le 14 Jan 2021
Commenté : Rik le 14 Jan 2021
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 commentaire
Rik
Rik le 14 Jan 2021
This time I edited your question for you. Next time, please use the tools explained on this page to make your question more readable.

Connectez-vous pour commenter.

Réponses (1)

Cris LaPierre
Cris LaPierre le 14 Jan 2021
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.

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!

Translated by