How to start a third party application with Matlab?
Show older comments
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)
Sugar Daddy
on 2 Jul 2020
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
Raja Vardhan Reddy Kothakapu
on 2 Jul 2020
Sugar Daddy
on 3 Jul 2020

Walter Roberson
on 3 Jul 2020
! 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.
Sugar Daddy
on 4 Jul 2020
Edited: Sugar Daddy
on 4 Jul 2020
! Test document.docx
works fine in R2020a. I ve tried it. though i agree open is smarter way
Walter Roberson
on 4 Jul 2020
! Test document.docx
would certainly not work on Mac.
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!