How to turn your script into a simple app (Seminar content)

版本 1.0.0 (50.4 MB) 作者: Michelle Hirsch
Demonstration source code for the seminar "How to turn your script into a simple app"
86.0 次下载
更新时间 2022/5/4

How to Turn Your Script into a Simple App

Open in MATLAB Online View How to turn your script into a simple app (Seminar content) on File Exchange

Overview

Custom-built apps are a great way to teach a concept, to automate common tasks, or to provide dashboards for interactively exploring complex data sets. And now with interactive controls in the Live Editor, if you can write a script, you can write an app. This talk demonstrates how to convert MATLAB scripts into simple notebook-style apps.

This demonstration covers the following concepts:

  • Replacing literal values with interactive controls in Live Scripts
  • Linking interactive controls in Live Scripts to values in the code
  • Live Editor automatically creates animations when a plot is updated in a loop
  • Using custom graphics callbacks (ButtonDownFcn) within the Live Editor

This demonstration was built and tested with R2022a. It will likely mostly run in R2021a and R2021b, except for the custom ButtonDownFcn.

This submission contains the companion code for the video "How to turn your script into a simple app".

Try it now: Open in MATLAB Online

Instructions

  • Open the project, ScriptToApp.prj. This will set up your paths

Fun things to play with:

  • SeaSurfaceTemperatureExplorer.mlx - This is the Live Script we build in the seminar
  • SearSurfaceTemperatureAnimation.mlx - See how animation works in the Live Editor
  • SeaSurfaceTemperatureExplorerAppDesigner.mlapp - Double click to open in App Designer. Right click>Run or enter name in command window to run.
  • helpers\trendmap.m, helpers\pickpoint.m: See how we set the custom ButtonDownFcn.

Copyright 2022 The MathWorks, Inc.

引用格式

Michelle Hirsch (2024). How to turn your script into a simple app (Seminar content) (https://github.com/mathworks/how-to-turn-your-script-into-a-simple-app/releases/tag/v1.0.0), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2022a
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签
致谢

参考作品: Climate Data Toolbox for MATLAB

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库