Today i will tell you how to run m file in GUI using matlab
i have camera.m matlab file saved in project folder which have to run when Push button is clicked in GUI
first create Push button on GUI
Click Start -> Matlab -> GUIDE(GUI Builder)
Select Blank GUI(default) -> press ok
Select push button and draw push button as show in fig
Go to the inspector and change string to start
Now save GUI in project folder only where you saved camera.m file
NOTE :- camera and GUI much be saved in same folder
after saving GUI Editor window will open
write camera under puchbutton1_callback function as shown in fig below
Now run your GUI to see result
Note :- It work only matlab 9 and above matlab version
if you get any error let me know from your comment and don`t forget to tell thanks
Related Posts:-
GUI Code for capture image - Matlab
Matlab code for shutdown computer
How to see webcam preview in Matlab
How to capture image form webcam in Matlab
How to connect microsoft access to Matlab
How to install matlab 2007 on Windows7
How to connect Mysql to Matlab
How to get through survey in website
Monday, April 9, 2012
Subscribe to:
Post Comments (Atom)
i want to build a gui n when click ok, it will run the .mfile..i had try your method but its fail..please help me..
ReplyDeleteWhich Matlab Version are you using??? it works in Matlab 9 and above.....
ReplyDeleteIt works as suggested
ReplyDelete