Plotting in a GUI

1 回表示 (過去 30 日間)
Paul Rogers
Paul Rogers 2020 年 11 月 9 日
コメント済み: Paul Rogers 2020 年 11 月 12 日
Hi, I am new to GUI, I did my first program but now I am stuck in plotting the results.
I'd like to plot the results I get from the function I inserted.
I've prevviously run this on a simple Matlab file, and I'd like to plot:
y(:,1)
y(:,2)
versus time. So basically I used to write:
plot(time,phi)
or
plot(time,psi)
I put in attached the file I did. The problem is at line 494 where I commented
  2 件のコメント
Cris LaPierre
Cris LaPierre 2020 年 11 月 10 日
I was going to recommend app designer, but saw the OP is using R2012b. If updating is a possibility, I strongly recommend it. If not, you an still definitely get this working in guide.

サインインしてコメントする。

採用された回答

Cris LaPierre
Cris LaPierre 2020 年 11 月 9 日
You will need to specify the axes handles as part of the plot command. You command should look something like this (untested):
plot(handles.axes1,time,phi)
  14 件のコメント
Paul Rogers
Paul Rogers 2020 年 11 月 12 日
thanks Cris LaPierre,
sorry for asking a lot but I couldn't find anything online for the GUI.
I post a snapshoot of the semi-final model (I'd like to make some adjstment in the next weeks)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

製品


リリース

R2012b

Community Treasure Hunt

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

Start Hunting!

Translated by