From: Syed Ali on 22 Oct 2009 08:07 Hello Every one, I am new user in MATLAB. I need to know that what code should I write to Open new Figure with Some UNI CONTROLS on it. So, we can have One Figure having One PUSH BUTTON, when this button is pressed the new Figure with UNICONTROLS will open. Regards.
From: Jan Simon on 22 Oct 2009 10:51 Dear Syed Ali! > Hello Every one, I am new user in MATLAB. I need to know that > what code should I write to Open new Figure with Some UNI CONTROLS > on it. So, we can have One Figure having One PUSH BUTTON, when this > button is pressed the new Figure with UNICONTROLS will open. I've received your code, but your question still doesn't get clearer to me. Do you mean "UICONTROL"s or are there really UNICONTROLs, which I've never heared of? Actually the answer to your question looks too trivial, but I try it: Create 2 files, file 1 is GUI1.m: function GUI1 fig1 = figure('Name', 'GUI 1'); uicontrol('String', 'Start GUI2', 'Callback', 'GUI2'); return; File 2: GUI2.m function GUI2 fig1 = figure('Name', 'GUI 1'); uicontrol('String', 'Start GUI2', 'Callback', 'GUI1'); return; This is a general approach. For more power insert a more advanced callback, which can e.g. close the first dialog before the 2nd appears and so on. I hope this helps, but at least you can explain, why this trivial example does not match your needs... Kind regards, Jan
|
Pages: 1 Prev: GUI, show the current point in the graph Next: cognitive radio |