Author Topic: gui figure  (Read 1381 times)

Offline inder_samant_28

  • Newbie
  • *
  • Posts: 1
    • View Profile
gui figure
« on: June 06, 2009, 09:08:43 AM »
hi everyone
   i am working in gui but i have problem to coonect to different figure means i have made one fig and given one push button on that fig and i want display second fig by push button . can u help me on this  plz do fast i u are able to do plz guide me ..............................

Offline georgitsanev

  • Newbie
  • *
  • Posts: 1
  • Matlab Forum
    • View Profile
Re: gui figure
« Reply #1 on: August 04, 2009, 04:47:08 PM »
Let first figure with pushbutton on it is called Fig1,second figure that we will call by push on pushbutton is called Fig2 then:
This is the code that you have to put into Callback:
'Callback','Fig2;'
If you want Fig1 to be hidden when you open Fig2 then you use this code into Callback:
'Callback','close;Fig2;'
 :)

Matlab and SimuLink Development Forum

Re: gui figure
« Reply #1 on: August 04, 2009, 04:47:08 PM »