Multi-Slider-Source ver1.7
No License
% MULTI_SLIDER_SOURCE generate the manual slider source block.
%
%
% Syntax:
%
% multi_slider_source1p7(noSlider)
% multi_slider_source1p7(low,high)
% multi_slider_source1p7(low,high,gain)
% multi_slider_source1p7(low,high,SliderLabel)
% multi_slider_source1p7(low,high,gain,SliderLabel)
%
%
% Description:
%
% multi_slider_source1p7(noSlider)
% requires only noSlider(number of the Sliders,scalar),
% it generate a source block with outputs = noSlider.
%
% multi_slider_source1p7(low,high)
% requires low and high values in form of row vector,
% it generate a source block with outputs = length(low), the size of low
% and high should be the same, and high > low should be fulfilled.
%
% multi_slider_source1p7(low,high,gain)
% requires low, high and gain values in form of row vector, it generate
% a source block with outputs = length(low), the size of low, high, and
% gain should be the same, and high > gain > low should be fulfilled.
%
% multi_slider_source1p7(low,high,SliderLabel)
% requires low, high values in form of row vector and SliderLabel in form of
% string cell array, the size of them should be the same, and high > low
% should be fulfilled.
%
% multi_slider_source1p7(low,high,gain,SliderLabel)
% requires low, high, gain values in form of row vector and SliderLabel in
% form of string cell array, the size of them should be the same, and
% high > gain > low should be fulfilled.
%
% Examples:
%
% multi_slider_source1p7(3)
%
% generate a multi slider source block with 3 sliders.
%
%
% low = zeros(1,5);
% high = 10*ones(1,5);
% multi_slider_source1p7(low,high);
%
% generate a multi slider source block with 5 sliders, which lower and upper
% limits are zeros(1,5) and 10*ones(1,5).
%
% low = zeros(1,3);
% high = 5*ones(1,3);
% gain = 2.5*ones(1,3);
% multi_slider_source1p7(low,high,gain)
%
% generate a multi slider source block with 3 sliders, which lower and
% upper limits are defined by low, high. The position of the slider buttons
% will be at 2.5*ones(1,3);
%
% low = zeros(1,2);
% high = 10*ones(1,2);
% SliderLabel = [{Speed} {Voltage}];
% multi_slider_source1p7(low,high,SliderLabel)
%
% generate a multi slider source block with 2 sliders, which lower and
% upper limits are defined by low, high. The slider label will be shown in
% the middel of each sliders.
%
% low = zeros(1,4);
% high = 10*ones(1,4);
% gain = 5*ones(1,4);
% SliderLabel = [{Speed1} {Speed2} {Voltage} {Time}];
% multi_slider_source1p7(low,high,gain,SliderLabel)
%
% generate a multi slider source block with 2 sliders, which lower and
% upper limits are defined by low, high. The position of the slider buttons
% determined by gain. The slider label will be shown in the middel of each
% sliders.
%
%
% New Features:
%
% Default: when clicked, reset all the parameters with original
% values when you generate the Multi-Slider-Source block.
%
% Save As Default: when clicked, save current min, max, Label, gain and
% positions of sliders as default values.
%
% Sets: when clicked, prompt a dialog to load input sets.
% The sets can be column vector or matrix in the
% order of Sliders. When dimension excessed, it gives a
% warning massage and cut the vectors or matrix
% automatically to match the dimension of your Multi-
% Slider-Source block. When the dimension is less than
% number of silders, it will be applied from the first
% silder.
%
% SetEdit: This edit box can only work when 'Sets:' button has
% been excuted. Give the number of column of the set you
% desired to use as input, if the number you entered is
% larger than the maximun column number of your Sets matrix,
% a warning massage will be given, and the maximun
% column number of your Sets matrix will be set inside
% the box.
Cite As
Po Hu (2026). Multi-Slider-Source ver1.7 (https://www.mathworks.com/matlabcentral/fileexchange/8147-multi-slider-source-ver1-7), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | version 1.7 Developed in MATLAB R14p1
|
