ParamUI_MATLAB

版本 1.1 (12.3 MB) 作者: covao
Create UI from simple parameter table. Easy UI generation with LLM such as ChatGPT
15.0 次下载
更新时间 2023/12/16

Japanese(Google Translate)

ParamUI MATLAB

View ParamUI_MATLAB on File Exchange

  • Create App with UI from simple parameter table
  • Easy code generation using ChatGPT

MATLAB command to download and open the demo

mkdir('./paramui_demo');
cd('./paramui_demo');
websave('paramui.m','https://github.com/covao/ParamUI_MATLAB/raw/main/paramui.m');
websave('hello_paramui.m','https://github.com/covao/ParamUI_MATLAB/raw/main/hello_paramui.m');
hello_paramui;

Usage

Parameter table definition

Parameter table is containing the following columns

  • Prameter Variable
  • Parameter Label
  • Initial Value
  • Range
    • Slider: [Min,Max,Step]
    • Check Box: []
    • Edit Box: []
    • Button: 'button'
    • Selecter: {'A','B'}
    • FileName: '*.txt;*.doc'
    • Button: 'button'
% Hello ParamUI
ParameterTable = { 
    'A', 'Parameter A', 0.5, [0, 1, 0.1];
    'B', 'Parameter B', 150, [100, 500, 10];
    'F1', 'Flag 1', true, [];
    'F2', 'Flag 2', false, [];
    'S1', 'Select 1','Two',{'One','Two','Three'};
    'S2', 'Select 2','Three',{'One','Two','Three'};
    'Name1','Name 1','Taro', [];
    'Name2','Name 2','Jiro', [];
    'File1','File 1','', '*.m; *.asv';
    'Folder','Folder1','', 'folder';
    'Run', 'Run!', false, 'button';
 };
 

Example 1: Run on UI Event

usrFunc = @(Prm) disp(Prm);
paramui(ParameterTable, usrFunc);

Example 2: Loop & Get Parameters

pu = paramui(ParameterTable);
while(pu.IsAlive)
    disp(pu.Prm);
    pause(0.5);
end

Example 3: Do not display UI for debug

usrFunc = @(Prm) disp(Prm);
paramui(ParameterTable, usrFunc, false);
disp(pu.Prm)

Demo

Related Sites

引用格式

covao (2024). ParamUI_MATLAB (https://github.com/covao/ParamUI_MATLAB/releases/tag/1.1), GitHub. 检索时间: .

MATLAB 版本兼容性
创建方式 R2023a
与 R2016a 及更高版本兼容
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

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

See release notes for this release on GitHub: https://github.com/covao/ParamUI_MATLAB/releases/tag/1.1

1.0

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