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

조회 수: 9 (최근 30일)
BSantos
BSantos 2013년 8월 7일
댓글: fathi zahou 2021년 5월 8일
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!

채택된 답변

Jan
Jan 2013년 8월 7일
You need:
system('path for .exe file')
  댓글 수: 2
BSantos
BSantos 2013년 8월 7일
Thanks a LOT!!! :D
fathi zahou
fathi zahou 2021년 5월 8일
Explain to me, please What should i do to create. Exe un gui matlab

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

vaya putra
vaya putra 2019년 7월 8일
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?

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by