how to execute an .m file by clicking push button in an another gui file?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
sarath chandra kumar boga
el 12 de Mayo de 2015
Respondida: Othmane ELMOUATAMID
el 18 de Jul. de 2018
hi, i have created a gui file with a push button. i want to run another matlab file by clicking the push button in gui file. help me regarding this.
thank you.
0 comentarios
Respuestas (2)
Image Analyst
el 12 de Mayo de 2015
Just put the name of the second m-file in the callback function of your push button. If the file is a function, rather than a script, you can also pass it input arguments if you want to or need to.
2 comentarios
Image Analyst
el 13 de Mayo de 2015
Not sure what that means, but I've tried running a script in another script, in a simple function, and in the pushbutton callback of a program written with GUIDE, and in all cases simply putting this on it's own line
secondscript
ran secondscript.m. I did not have to do
run('secondscript.m');
Ver también
Categorías
Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!