MATLAB Answers

Command external app to save data

2 views (last 30 days)
Munir Baldomero
Munir Baldomero on 13 Mar 2021
Answered: Pranav Verma on 16 Mar 2021
How can I use system function or are there other function in matlab that can command an external app to save the data into a specific file type and folder? Thank you!

Answers (1)

Pranav Verma
Pranav Verma on 16 Mar 2021
Hi Munir,
The MATLAB system command is used to run the operating system commands from within the MATLAB command line and return the output. You can pass the OS command that you want to execute to the system command and get the output stored in a variable.
Other way of running commands is using the '!' operator. You can type the OS command that you want to run and prefix the whole command with '!' operator.
Please refer to the this link for getting more information on using 'system' and '!'.
Thanks

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!