Skip to content
/ puppeteer Public

MATLAB class to control and manipulate models, simulations, functions...anything

Notifications You must be signed in to change notification settings

sg-s/puppeteer

Repository files navigation

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

About

MATLAB class to control and manipulate models, simulations, functions...anything

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published