how to plot the graph using MATLAB guide?

32 ビュー (過去 30 日間)
raghavendra kandukuri
raghavendra kandukuri 2019 年 2 月 21 日
コメント済み: Perez 2021 年 4 月 23 日
Is there a way to plot the graph using Guide, i have a .fig file which i created using Guide, it has few drop downs and push buttons, i am just looking a way to incoporate a graph there.


Walter Roberson
Walter Roberson 2019 年 2 月 21 日
Yes, for sure. Open the .fig in GUIDE and use GUIDE to add an axes and take note of the tag. Then create a "plot" pushbutton. In the callback for the new pushbutton, use
and then you can plot your data. See also Sharing variables
x = handles.x_to_plot;
y = handles.y_to_plot;
plot(x, y)
  2 件のコメント
Perez 2021 年 4 月 23 日
Hello, I am going to make a GUIDE, I have a graph and I would like that when I clicked the pushbutton it would reflect the graph with these points (3,10) (6,15) (9,25) , how would the code be?


その他の回答 (0 件)


Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by