A MATLAB class that can control anything.
- You have a simulation or a function with some parameters. It's complicated
- You want to get a feel for it by twiddling the parameters and seeing how it changes
- It's a pain to write bespoke wrappers for your code and worry about UI generation
puppeteer
does all the hard work of generating UI elements for you. Here's how it works.
Generate a new puppeteer
instance and tell it the parameters you want to manipulate:
p = puppeteer();
p.add('Name',Name,'Value',Value,'Group',categorical({'Wow'}),'Upper',1e-3,'Units','M');
% and so on...
Then wire up a callback function that gets called every time the sliders move:
p.valueChangingFcn = @self.manipulateEvaluate;
Finally, ask it to draw the UI
p.makeUI;
That's it. Enjoy.
GPL 3. puppeteer
is free software.