Multi-Slider-Source ver1.7

Version 1.0.0.0 (9.07 KB) by Po Hu
This is a new version of Multi-Slider-Source, and some new features are added.
1.4K Downloads
Updated 8 Aug 2005

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 (2024). 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
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Author Block Masks in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0

version 1.7 Developed in MATLAB R14p1
The version modify some bugs and add 2 new buttons to increase/decrease Loading sets 1 by 1. Some bugs are corrected.