having complexity in figures?

1 Ansicht (letzte 30 Tage)
Atas Fet
Atas Fet am 15 Mai 2015
hii all,
İ have been create a Matlab gui guide to run my program. in guide i have a pushbutton when i click it supposed to figure 9 image that placed by subplot(3 3 1) command. actually it figures the images. but the same figure which i have my gui inside. so it create an unwanted ugly background. how do i figure separately?
Thank you for your help!

Akzeptierte Antwort

Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh am 15 Mai 2015
Bearbeitet: Salaheddin Hosseinzadeh am 15 Mai 2015
Hi Atas,
You can either use a figure command to open a separate figure window. Take it's handle and use it for your further subplot commands and plot(commands)
something similar to this
figHandle = figure;
plot(h,x,y); % or maybe plot(x,y,h) check matlab help please.
The same with subolot command.
Alternatively, you can use a figure embedded inside your GUI, and its the same principle. Except you don't have to write the figure; command!
Hope that helps. Good luck ;)
  2 Kommentare
Atas Fet
Atas Fet am 15 Mai 2015
hi Salaheddin,
Thank you for answering. i did what you said and it worked now. that was cause of i didnt describe figure command specifically so it was figuring on that one which figure my guide.
Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh am 15 Mai 2015
I'm glad that you're problem is solved.
There is one more thing to have a look at, and that "gcf" command.
Have a look at this in MATLAB help.
Good luck ;)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by