Skip to content

sg-s/puppeteer

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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