dialog to edit parameters

Version 1.0.0 (2.44 KB) by Qin CHEN
`uifigure`-based modal dialog to get multiple parameters, allowing the setting of labels, default values, and units for each parameter.
11 Downloads
Updated 30 Aug 2024

View License

% Edit parameters in a dialog.
%
% Parameters:
% - name: name of the dialog
% - labels: cell array of labels
% - defaultValues: array of default values
% - units: cell array of units, latex supported
%
% Returns:
% - parameters: mat array of parameters
%
% Example:
% labels = {'a', 'b', 'c'};
% defaultValues = [1, 2, 3];
% units = {'$m/s$', '$kg$', '$m^2$'};
%
% parameters = editParameters('test', labels, defaultValues, units);
% disp(parameters);

Cite As

Qin CHEN (2026). dialog to edit parameters (https://www.mathworks.com/matlabcentral/fileexchange/172054-dialog-to-edit-parameters), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021a
Compatible with R2021a and later releases
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Version Published Release Notes
1.0.0