How to start a third party application with Matlab?

Hi everyone,
My Matlab script generates some files, when I compile it. I need to load this files in to a another third-party application. Instead of manually doing this, I would like to automate the process with a function. Could someone please tell me, is there any way to do this?My goal is to first open the application and then load the files using File->Newproject with a Matlab command.
Thanks in advance

Answers (1)

open is the command. Suppose that i want to open a word document (which is in my MATLAB path) then
open('Test document.docx')
or you can also use
! Test document.docx

5 Comments

Well, I don't think it will work for applications. I tried to open an application with open() command, it didn't work. Morever the help command says open() is used to open file or variable.
! Test document.docx
Not equivalent. That attempts to find a command or executable named Test and run it with "document.docx" as a command line option.
! "Test document.docx"
would at least get the file name correct, but it would rely upon the system knowing that the proper action for a docx is to open the file... which is probably not something it knows to do.
open() is smarter about how to open files, matching suffixes to known commands.
! Test document.docx
works fine in R2020a. I ve tried it. though i agree open is smarter way
! Test document.docx
would certainly not work on Mac.

Sign in to comment.

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products

Release

R2018b

Community Treasure Hunt

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

Start Hunting!