Skip to content
MathWorks - Mobile View
  • MathWorks 계정에 로그인합니다.MathWorks 계정에 로그인합니다.
  • Access your MathWorks Account
    • 내 계정
    • 나의 커뮤니티 프로필
    • 라이선스를 계정에 연결
    • 로그아웃
  • 제품
  • 솔루션
  • 아카데미아
  • 지원
  • 커뮤니티
  • 이벤트
  • MATLAB 받기
MathWorks
  • 제품
  • 솔루션
  • 아카데미아
  • 지원
  • 커뮤니티
  • 이벤트
  • MATLAB 받기
  • MathWorks 계정에 로그인합니다.MathWorks 계정에 로그인합니다.
  • Access your MathWorks Account
    • 내 계정
    • 나의 커뮤니티 프로필
    • 라이선스를 계정에 연결
    • 로그아웃

비디오 및 웨비나

  • 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. 

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

Bridging Wireless Communications Design and Testing with MATLAB

Read white paper
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 스토어

사용 방법

  • 문서
  • 튜토리얼
  • 예제
  • 비디오 및 웨비나
  • 교육

지원

  • 설치 도움말
  • MATLAB Answers
  • 컨설팅
  • 라이선스 센터
  • 지원 문의

회사 정보

  • 채용
  • 뉴스 룸
  • 사회적 미션
  • 고객 사례
  • 회사 정보
  • Select a Web Site United States
  • 신뢰 센터
  • 등록 상표
  • 정보 취급 방침
  • 불법 복제 방지
  • 애플리케이션 상태
  • 매스웍스코리아 유한회사
  • 주소: 서울시 강남구 삼성동 테헤란로 521 파르나스타워 14층
  • 전화번호: 02-6006-5100
  • 대표자 : 이종민
  • 사업자 등록번호 : 120-86-60062

© 1994-2022 The MathWorks, Inc.

  • Naver
  • Facebook
  • Twitter
  • YouTube
  • LinkedIn
  • RSS

대화에 참여하기