MATLAB: Open Application with MATLAB

command lineMATLABopen application

Hello!
I'd like to use MATLAB to open 'Zebra Setup Utilities'(an application used to control Zebra label printers). My ultimate goal is use matlab to print labels from a printer, but I am struggling on step 1 which is to even open the application
I have tried using the !, system(' '), and winopen() commands which I have read are supposed to open up executable programs from the command line. However, for the first two I recieve this error
'Zebra' is not recognized as an internal or external command,
operable program or batch file.
and this error for winopen
Error: Invalid expression. Check for missing multiplication operator, missing or unbalanced
delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.
Are these commands only meant to open up matlab files? Because they sucessfully open those! Are there any other ways I should try to open up the Zebra Setup Utilities?

Best Answer

Hi Sebastian,
you're supposed to provide full path to the executable file when using system command.
system("C:\Program Files\...\ Zebra.exe");
This might be a better way to do this as it provides more control over the process. You don't need to define Arguments and UseShellExecute properties in your case.
Related Question