Function Parameter Slider
funcslider.m
Given a function with several (up to 5) inputs, and several outputs,
[z1, z2, ...] = f(x1,...,x5)
Function Slider lets you vary the input values x1...x5 using continuously updating sliders, and then viewing the results using any arbitrary MATLAB expression on the outputs (z1,z2...).
The input function, output (plotting) function, and slider values/limits are all user settable.
I wrote this with a hard coded limit of 5 sliders in this GUI, but it probably wouldn't be too hard to change this.
The HELP shows several examples that should hopefully make this clear.
Known issues:
There may be some difficulties with trying to keep the view exactly the same when the lock command is checked.
Cite As
Teja Muppirala (2024). Function Parameter Slider (https://www.mathworks.com/matlabcentral/fileexchange/28076-function-parameter-slider), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.