Loren on the Art of MATLAB

Turn ideas into MATLAB

Tips for Deploying your Work 5

Posted by Loren Shure,

There are a lot of ways of sharing your ideas with MATLAB these days. Including

Today I want to remind you of some tools in MATLAB that can facilitate the transition to code you want to deploy via the MATLAB Compiler and SDK.


Useful Functions for Deployment

Here's a list of the functions I find most useful to aid in deployment.

Other Helpful Functions?

Do you have other functions that ease your transition to deploying your app? Let me know here.

Get the MATLAB code

Published with MATLAB® R2017b


Comments are closed.

5 CommentsOldest to Newest

Sean de Wolski replied on : 1 of 5
tempname (like tempdir) onCleanup/delete to remove any temp files. datetime('now') useful for knowing when something happened.
dbarry1 replied on : 2 of 5
It would be very useful to have an equivalent of isdeployed for apps and toolboxes to determine if code is being run from within a packaged app/toolbox or not. We often have cases where we only want to execute certain code when running as an app rather than when running from a developers sandbox. In the absence of such a function we have created our own but it should be something out of the box really.
Alfonso replied on : 3 of 5
nice list! a few other useful functions for deployment: ispc / isunix / ismac, getenv / setenv, pwd, version, usejava, groot
tugfrance replied on : 4 of 5
Hello, Just some commands that I also use : get(0,'monitorposition') can be used to be sure that the end-user has 2 monitors if it is required by the deployed app. ispc, isunix ... may be also helpful
Nice additions, everyone. @dbarry1, can I please ask you to create an enhancement report via technical support for your use case. Developers definitely look over user requests when they are in the planning part of the their cycle. Thanks! --Loren