Skip to content
MathWorks - Mobile View
  • MathWorks アカウントへのサインインMathWorks アカウントへのサインイン
  • Access your MathWorks Account
    • マイ アカウント
    • コミュニティのプロファイル
    • ライセンスを関連付ける
    • サインアウト
  • 製品
  • ソリューション
  • アカデミア
  • サポート
  • コミュニティ
  • イベント
  • MATLAB を入手する
MathWorks
  • 製品
  • ソリューション
  • アカデミア
  • サポート
  • コミュニティ
  • イベント
  • MATLAB を入手する
  • MathWorks アカウントへのサインインMathWorks アカウントへのサインイン
  • Access your MathWorks Account
    • マイ アカウント
    • コミュニティのプロファイル
    • ライセンスを関連付ける
    • サインアウト

ビデオ・Webセミナー

  • MathWorks
  • ビデオ
  • ビデオ ホーム
  • 検索
  • ビデオ ホーム
  • 検索
  • 営業へのお問い合わせ
  • 評価版
3:25 Video length is 3:25.
  • Description
  • Full Transcript
  • Related Resources

How to Build an App with MATLAB

From the series: “How To” Video Series for Biomedical and Pharmaceutical Applications

Learn how to build your custom apps with MATLAB® in just a few minutes.

Hello, everyone. Paul here from MathWorks. 

We've received several inquiries lately about how to build apps for biomedical and test and measurement applications. So I thought I'd take a moment to share with you how you can get started building your own custom apps in MATLAB in just a few minutes. 

But before we get started, here's an example of a web app I built in MATLAB, one morning back in early 2020. Web apps are accessed via web browser and do not require the end user to have a MATLAB installation or license. This app automatically grabs the latest COVID data from the Johns Hopkins website and displays the results for the user selected country and time frame. I also added a very simple projection model by fitting a Gaussian curve to the daily new cases. 

Now, I'll show you how to build a slightly simpler app, but all the basic steps are the same. To get started, open App Designer from the Home tab in MATLAB. When you do so, you'll see several templates to choose from, including a short interactive tutorial. For this example, I'll start from scratch with a blank app. As you can see in the component library on the left, there are many components to choose from, such as buttons, tabs, gauges, and even aerospace instrument indicators. 

For this example, we'll select an axes component and then draw it on the desired location on the app canvas. We'll be using this access to displace some made up signal data. Next, we'll add a slider so the user can adjust the gain on the amplitude of the displayed signals. You can quickly relabel components by double clicking or by using the component browser on the menu on the right. 

This menu allows you to easily customize your components. There are many options available. For now, in addition to the plot title and axes labels, we'll just change the axes limits and add some grid lines. Next, we'll need to specify what we want to happen when the user interacts with the slider. To do so, right click to add a callback to this component. 

This brings us to the code view of our app. MATLAB automatically generates all the code in gray. We just need to add the line of code we want to run when the slider value changes. We'll add a plotting command and specify that it should be displayed in the axes we just added in the Design View. We'll use the MATLAB peaks command to generate some signals and then scale them by the user provided slider value. In your application, this could, instead, be data loaded from a file or database, signals collected directly from hardware instrumentation, or perhaps a camera image or other result that you would like to display. 

And that's it. We're ready to try out our app. We can test run our app in MATLAB by pressing the green run button. We'll then experience what the end user would see if the app was deployed as a standalone desktop application. This allows you to quickly and easily test out and update the functionality and user interface of your app before it's deployed. Once you're ready to deploy your app, you can use the Designer tab to access the Share dropdown menu to package your app for easy sharing with non MATLAB users. 

If you'd like to learn more about building and deploying apps, please visit the App Designer home page. Or you can use the link below to check out our recent webinar on how you can enhance your biomedical data analysis with MATLAB. This introductory webinar will give you an overview of the complete workflow, from accessing your data to deploying your app. Thanks for watching. 

Learn More

Beyond Excel: Enhancing Your Biomedical Data Analysis with MATLAB (21:15)

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
Related Information
Related Information
Get started with examples from App Designer

Feedback

Up Next:

Use interactive apps to jump start image processing tasks.
3:31
Getting Started with Image Processing with MATLAB
View full series (7 Videos)

Related Videos:

49:40
How to Build a Web Site “Powered by MATLAB”
19:50
How to Build Custom Motor Controllers for Zynq SoCs with...
3:06
Mission on Mars Robot Challenge: How to Build a Stateflow...
18:31
Introducing the Fixed-Point Converter App for MATLAB
31:29
MATLAB: Tips and Tricks
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

  • 営業へのお問い合わせ
  • 評価版

MathWorks

Accelerating the pace of engineering and science

MathWorksはエンジニアや研究者向け数値解析ソフトウェアのリーディングカンパニーです。

ディスカバー…

製品を見る

  • MATLAB
  • Simulink
  • 学生向けソフトウェア
  • ハードウェア サポート
  • File Exchange

製品評価版の入手または製品の購入

  • ダウンロード
  • 評価版ソフトウェア
  • 営業へのお問い合わせ
  • 価格とライセンス
  • MathWorksストア

使い方を学ぶ

  • ドキュメンテーション
  • チュートリアル
  • 例
  • ビデオ・Webセミナー
  • トレーニング

サポートを受ける

  • インストールのヘルプ
  • MATLAB Answers
  • 技術コンサルティング
  • ライセンスセンター
  • サポートへのお問い合わせ

MathWorks について

  • 採用情報
  • ニュースルーム
  • 社会貢献
  • ユーザー事例
  • MathWorks について
  • Select a Web Site United States
  • トラストセンター
  • 商標
  • プライバシー ポリシー
  • 違法コピー防止
  • アプリケーション ステータス

© 1994-2022 The MathWorks, Inc.

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

MATLAB を語ろう