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 Center および File ExchangeDevelop 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