필터 지우기
필터 지우기

From .m file to app designer

조회 수: 10 (최근 30일)
Crish
Crish 2021년 1월 14일
댓글: Rik 2021년 1월 14일
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
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
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.

카테고리

Help CenterFile 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!

Translated by