GUI question

7 次查看(过去 30 天)
marina
marina 2012-4-15
i have the main gui window. can i open through a button an extra gui window to perform some tasks and then close it and continue working in the main window??
  5 个评论
Jan
Jan 2012-4-15
Now without humor: You can insert the command for opening the 2nd GUI in the callback of the button. While this is actually easy, not to say trivial, it is complicated to give an explicit example, because your question is vague. Therefore Oleg's "yes" is an almost optimal answer.
What have you tried so far and which problems appeared?
marina
marina 2012-4-16
How can i use a variable from one gui to the main gui?

请先登录,再进行评论。

采纳的回答

Geoff
Geoff 2012-4-15
1. Build your other GUI.
2. Create the button in your main GUI and put code inside its click callback that invokes your new GUI. This will just be the base name of the M-file that your GUI is stored in.

更多回答(1 个)

marina
marina 2012-4-16
How can i use a variable from one gui to the main gui?
  1 个评论
Walter Roberson
Walter Roberson 2012-4-16
http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.3F

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by