Filter löschen
Filter löschen

From .m file to app designer

10 Ansichten (letzte 30 Tage)
Crish
Crish am 14 Jan. 2021
Kommentiert: Rik am 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 Kommentar
Rik
Rik am 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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Cris LaPierre
Cris LaPierre am 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.

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by