Skip to content

Latest commit

 

History

History
56 lines (31 loc) · 1.41 KB

README.md

File metadata and controls

56 lines (31 loc) · 1.41 KB

puppeteer

GitHub last commit

View puppeteer on File Exchange

A MATLAB class that can control anything.

The Problem:

  • 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

The solution

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.

License

GPL 3. puppeteer is free software.

puppeteer in use

  1. black-box-neuron
  2. xolotl