how to run GUI continues when i am running 11 .m files from the GUI

1 次查看(过去 30 天)
hi, I have 11 .m files from which i have 11 push buttons. and at every callback of push button i have repective .m file . Once i push the push button that rescpective .m file will run and it will close the gui.to run the other .m file again i need to open the GUI and run.
How do i run the other .m file without opening the GUI. Kindly help me on the same .

回答(5 个)

Walter Roberson
Walter Roberson 2012-5-15
As a guess:
Remove the
clear all
from your code.

m s
m s 2012-5-15
Clear all it is not working.

m s
m s 2012-5-23
hi sorry for delayed reponse..
The GUI window was closing beacause of clf command which was there in .m file.
I am facing other issue now please help for the same.
Prob:
Setup_File
subplot(1,1,1); plot(dummy.signals.values,dummy_1.signals.values);
axis([0 12000 -2 25]);
Title({'Normal';' d VS e'});
xlabel({'d'});
ylabel({'e'});
grid('ON');
saveas(gcf,'001_Plot1.jpg');
This .m file runs a set up file and saves the plot in the folder.
Now to close the figure we were using clf.
so now i am facing , how to close the particular figure '001_Plot1.jpg' without closing GUI.
kindly help me
Thanks
Mahadev

Walter Roberson
Walter Roberson 2012-5-23
delete(subplot(1,1,1))

m s
m s 2012-5-25
Thanks now it is working ..
other issue i am facing .
I am running a .m file from the GUI .. the .m file has many variables which will be saved in workspace when i run without GUI and these variables will be used by other .m files. when i drag and drop the .m file all the variables i can see in workspace but i run the same .m file via GUI i am not able to see anything in workspace. please help me on the same matter
thanks mahadev

类别

Help CenterFile Exchange 中查找有关 App Building 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by