ipanel
This class adds a panel containing slider/checkbox/popupmenu controllers to provide a primitive MATHEMATICA-'Manipulate'-like facility.
A function handle that accepts aribtrary number of parameters is passed in with respective controller specification. Each parameter gets associated with a controller and becomes a 'controlled parameter'. The controllers can be used to adjust the parameters, and thereby manipulate the function (and the graphics).
For example, the attached figure was generated using:
>> x = 0:.001:1;
>> ipanel(@(a,b)plot(x,sin(2*pi*a*x)+cos(2*pi*b*x)),{'slider','Frequency 1',{0,10,1}},{'slider','Frequency 2',{0,10,5}},'MinControlWidth',250,'LabelWidth',100)
For details please check:
>> help ipanel.ipanel
Public methods: Try 'help ipanel.funcname' for help on each 'funcname'
- ipanel (constructor; adds ipanel and controllers)
- remove (removes ipanel and the controllers from a figure)
- getControllers (provides handles to the ipanel's internals)
- getData (returns the values of controlled parameters)
- display (display current values of the controlled parameters)
Author : Damith Senaratne, (http://www.damiths.info)
Released date : 19th December 2012
Cite As
Damith Senaratne (2026). ipanel (https://www.mathworks.com/matlabcentral/fileexchange/39537-ipanel), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
