How to run a .exe file with push button (GUI)?

7 Ansichten (letzte 30 Tage)
BSantos
BSantos am 7 Aug. 2013
Kommentiert: fathi zahou am 8 Mai 2021
Hello!!
I would like to ask for your help, as I have ran out of options.
On my GUI, I would like to run a Matlab app (.exe file), when user clicks on push button (my GUI it's still a .m file).
I have tried:
  • run ('path for .exe file')
  • run tool.exe
  • tool.exe in the call back of my button
I always get an Error message saying that the file can't be found.
Suggestions on how to solve this??
Thanks in advance!

Akzeptierte Antwort

Jan
Jan am 7 Aug. 2013
You need:
system('path for .exe file')
  2 Kommentare
BSantos
BSantos am 7 Aug. 2013
Thanks a LOT!!! :D
fathi zahou
fathi zahou am 8 Mai 2021
Explain to me, please What should i do to create. Exe un gui matlab

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

vaya putra
vaya putra am 8 Jul. 2019
i want to execute file but in difference directory
i am trying to change path using
myPath ='/home/vaya/field_run/'
command =' pf_ext.exe&'
[stat,res]=system(['export PATH=' myPath ' ; ' command])
but the result is unexpected, he did not run that file
any comments?

Kategorien

Mehr zu Environment and Settings finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by