Skip to content
MathWorks - Mobile View
  • Sign In to Your MathWorks AccountSign In to Your MathWorks Account
  • Access your MathWorks Account
    • My Account
    • My Community Profile
    • Link License
    • Sign Out
  • Products
  • Solutions
  • Academia
  • Support
  • Community
  • Events
  • Get MATLAB
MathWorks
  • Products
  • Solutions
  • Academia
  • Support
  • Community
  • Events
  • Get MATLAB
  • Sign In to Your MathWorks AccountSign In to Your MathWorks Account
  • Access your MathWorks Account
    • My Account
    • My Community Profile
    • Link License
    • Sign Out

Videos and Webinars

  • MathWorks
  • Videos
  • Videos Home
  • Search
  • Videos Home
  • Search
  • Contact sales
  • Trial software
3:58 Video length is 3:58.
  • Description
  • Full Transcript
  • Related Resources

Getting Started: Standalone Applications Using MATLAB Compiler

Package MATLAB® programs as standalone applications using MATLAB Compiler™. Share these applications royalty-free with users who do not have MATLAB.

In this video, we show how you can create Standalone Applications from your MATLAB programs by using MATLAB Compiler. You can share these applications with users who do not need to modify the underlying code. This application, for example, does not need MATLAB installed to run it. You can load custom files, get an audio response when you click on this button, and also get a visual output, thanks to MATLAB graphics.

But before we can use the application, we need to design it in MATLAB. You will use the guide feature in MATLAB to build this SUI, along with some MATLAB programming to do the back-end computation. To be able to share this application such that it runs without the need of a MATLAB installation, you can use the MATLAB Compiler add-on product.

Open the Application Compiler that is inside the MATLAB Apps Gallery. Within this interface, you pick the main MATLAB file that you created for programming your application. Once you pick the main file, MATLAB Compiler automatically recognizes some file dependencies, like MATLAB functions being used in the main program, and the FIG file needed for the user interface. I can add some user specific data through a MAT file, which is essentially a basic MATLAB file type used to store MATLAB variables and objects.

Next, you have options like choosing an icon, and a splash screen that shows up when the user of your application is installing it on their machine. More options here allow you to add additional customizations, such as version number and author information. Once you are all set with the customizations, you have the option to package in the Automatic Installer for MATLAB Runtime Libraries. The applications will use these front time libraries to run on the target machine, instead of requiring an installation of MATLAB.

You can either leave this option to the default download from Web Option, or it can add MATLAB runtime libraries with the package by choosing this other option. MATLAB Runtime is a onetime installation, so the application setup will skip this installation if it finds the right libraries already installed on the computer. Having said all the options, we can now package this application to create a shareable file. Once the packaging is complete, you'll see a far redistribution folder created for you. Inside this folder, there is this single setup file that you can share with your users or colleagues who do not have MATLAB.

On your user's computer, executing this setup file brings up the application installer with the splash screen we had picked. Once the installation is complete, the application appears in the programs list and runs like any other program without needing MATLAB. To summarize, you start by creating your application in MATLAB. Then use the MATLAB Compiler to create an installer that can be shared with your users. On the user's machine, the installer will automatically install the application, along with the runtime libraries that it needs to run with.

To learn more about the MATLAB Compiler, please visit the product web page on mathworks.com, or choose a link below.

Related Products

  • MATLAB Compiler

3 Ways to Speed Up Model Predictive Controllers

Read white paper

A Practical Guide to Deep Learning: From Data to Deployment

Read ebook

Bridging Wireless Communications Design and Testing with MATLAB

Read white paper

Deep Learning and Traditional Machine Learning: Choosing the Right Approach

Read ebook

Hardware-in-the-Loop Testing for Power Electronics Control Design

Read white paper

Predictive Maintenance with MATLAB

Read ebook

Electric Vehicle Modeling and Simulation - Architecture to Deployment : Webinar Series

Register for Free

How much do you know about power conversion control?

Start quiz

Feedback

Featured Product

MATLAB Compiler

  • Request Trial
  • Get Pricing

Up Next:

3:19
Getting Started: Excel Add-ins Using MATLAB Compiler

Related Videos:

2:23
What Is MATLAB Compiler?
26:14
Sharing and Deploying MATLAB Applications
2:28
Using Application Deployment to Share Your MATLAB Programs
1:04:54
Automated Trading with MATLAB

View more related videos

MathWorks - Domain Selector

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

  • Switzerland (English)
  • Switzerland (Deutsch)
  • Switzerland (Français)
  • 中国 (简体中文)
  • 中国 (English)

You can also select a web site from the following list:

How to Get Best Site Performance

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

Americas

  • América Latina (Español)
  • Canada (English)
  • United States (English)

Europe

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom (English)

Asia Pacific

  • Australia (English)
  • India (English)
  • New Zealand (English)
  • 中国
    • 简体中文Chinese
    • English
  • 日本Japanese (日本語)
  • 한국Korean (한국어)

Contact your local office

  • Contact sales
  • Trial software

MathWorks

Accelerating the pace of engineering and science

MathWorks is the leading developer of mathematical computing software for engineers and scientists.

Discover…

Explore Products

  • MATLAB
  • Simulink
  • Student Software
  • Hardware Support
  • File Exchange

Try or Buy

  • Downloads
  • Trial Software
  • Contact Sales
  • Pricing and Licensing
  • How to Buy

Learn to Use

  • Documentation
  • Tutorials
  • Examples
  • Videos and Webinars
  • Training

Get Support

  • Installation Help
  • MATLAB Answers
  • Consulting
  • License Center
  • Contact Support

About MathWorks

  • Careers
  • Newsroom
  • Social Mission
  • Customer Stories
  • About MathWorks
  • Select a Web Site United States
  • Trust Center
  • Trademarks
  • Privacy Policy
  • Preventing Piracy
  • Application Status

© 1994-2022 The MathWorks, Inc.

  • Facebook
  • Twitter
  • Instagram
  • YouTube
  • LinkedIn
  • RSS

Join the conversation