Draw graphs from menu GUI

조회 수: 1 (최근 30일)
Sampath reddy
Sampath reddy 2012년 4월 24일
I want to plot any four graphs from the menu of 7 options in a GUI on the same window. How to do that??
Thanks!!

답변 (2개)

Image Analyst
Image Analyst 2012년 4월 24일
I guess with the plot() command. Tell me if I'm wrong. If I am, then you're required to give us more information so we can give you a complete and meaningful answer.
  댓글 수: 1
Image Analyst
Image Analyst 2012년 5월 6일
Have the 4 axes there. Then before you regenerate the plots (with plot(), bar(), pie() or whatever) call axes() to set the current axes. For example:
% Plot data set #3 into axes #1.
axes(handles.graph1);
plot(x3, y3);
% Plot data set #5 into axes #2.
axes(handles.graph2);
plot(x5, y5);
% Plot data set #6 into axes #3.
axes(handles.graph3);
plot(x6, y6);
% Plot data set #7 into axes #4.
axes(handles.graph4);
plot(x7, y7);

댓글을 달려면 로그인하십시오.


Walter Roberson
Walter Roberson 2012년 4월 24일
subplot()
  댓글 수: 1
Sampath reddy
Sampath reddy 2012년 5월 5일
While the GUI is running i want to choose the graphs i want to view.
I have 4 axes on GUI window.
I have a list box with 7 options. graph1, graph2,...,graph7.
First when the GUI begins the 4 axes will have graph1,..,graph4, later i want to view graph3,graph5,graph6, and graph7. and after that i want to view different combination of the list. How to do that

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by