MATLAB Answers

How to start a third party application with Matlab?

2 views (last 30 days)
Raja Vardhan Reddy Kothakapu
Commented: Walter Roberson on 4 Jul 2020
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

  0 Comments

Sign in to comment.

Answers (1)

Sugar Daddy
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

Show 2 older comments
Walter Roberson
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
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
Walter Roberson on 4 Jul 2020
! Test document.docx
would certainly not work on Mac.

Sign in to comment.

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!