View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

4.0 | 1 rating Rate this file 4 Downloads (last 30 days) File Size: 17 KB File ID: #41615 Version: 1.2
image thumbnail




03 May 2013 (Updated )

A visual tool that allows to build signals and save them to workspace variables.

| Watch this File

File Information

Modified version of UISignalBuilder by Laurent VAYLET.
Use this tool to create signals by mouse-clicks. They can then be exported to Matlab variables at a specified sample period.
- Linear, spline, pchip and nearest neighbor interpolation,
- Multiple signals in one figure (you can add signals, not delete them),
- Save/reload data points to/from a workspace variable
- Export signals at a specified sample period.
- Choose which signals to export
- Export in a "Simulink|From Workspace"-friendly form (i.e. a struct with a 'time' and a 'signals' field).
- Intuitive pan/zoom

For this file, I modified the code by VAYLET. GridBagLayout was used for positioning the controls in the figure. A modified version of akZoom (named akZoom2, included in this package) was used for panning/zooming. Note that akZoom2 is not a mature product. It works for this specific project, but functionality in other cases is not guaranteed.


Uisignalbuilder, Ak Zoom, and Grid Bag Layout inspired this file.

Required Products MATLAB
MATLAB release MATLAB 8.6 (R2015b)
MATLAB Search Path
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
08 Sep 2016 Stephan

Great, now it works! Thank you.

07 Sep 2016 Gijs van Oort

Stephan, the issue you describe is due to incompatibility with newer (>=2015b?) Matlab versions. There, a graphics handle is an object instead of a numerical identifier. And, isnan() can only handle numbers... I updated it so that it should work again (tested in R2016a)

Comment only
07 Sep 2016 Stephan

When I call "uisignalbuilder2" in R2015b I get the following error:

Undefined function 'isnan' for input arguments of type ''.

Error in layout.AbstractLayout/add (line 48)
if ~isnan(h)

Error in layout.GridBagLayout/add (line 106)
add@layout.AbstractLayout(this, h, row, col);

Error in uisignalbuilder2 (line 131)
figureLayout.add(hAxes, [1 2], 1, 'Fill', 'Both');

Any ideas?

Comment only
06 May 2013 1.1

Added a 'Simulink|From Workspace'-friendly export function.

07 Sep 2016 1.2

Made it work with R2015b and higher (where graphics handles are objects instead of numerical identifiers)

Contact us