View License

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

» Watch video

Highlights from
gettok: a pedestrian matlab constructs decoder

5.0 | 1 rating Rate this file 6 Downloads (last 30 days) File Size: 66.1 KB File ID: #1348 Version: 1.0
image thumbnail

gettok: a pedestrian matlab constructs decoder


us (view profile)


16 Feb 2002 (Updated )

a decoder/tokenizer for MATLAB constructs

| Watch this File

File Information

recursively decodes MATLAB constructs such as numbers, strings, structures, cells, and returns
- <eval>uable MATLAB constructor syntax
- a descriptive summary of the constructor's contents
- the contents itself

and - for historical reasons
- converts strings to and from cells
- creates character ranges

the convenient GETTOK wrapper STOK creates two panels

the upper panel lists the constructor syntax and contents descriptor of each entry
- selecting line 1 will display a brief help in the lower panel
- selecting line 2 will display a version summary in the lower panel
- selecting an entry displays a summary and the contents of the constructor in the lower panel
- selecting any item in the lower panel displays the constructor syntax in the command window for copy/paste operations
- evaluating a constructor at the command prompt will return its contents

see the accompanying published M-file for an example

MATLAB release MATLAB 6.1 (R12.1)
Other requirements good spirits
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
18 Oct 2004 Peter (PB) Bodin

Great functionality and excellent documentation.

22 Feb 2002

cleanup (debugging statements)

23 Feb 2002

now takes care of anomalies of the form:

24 Feb 2002

remove annoying debug-output

24 Feb 2002

faster test sequence (user request)

25 Feb 2002

cumulative update: handles anomalous structures/cells, two user requested enhancements, work on PDF help file in progress ...

30 Apr 2002

handles anomalous STRUCTs of the form: size(1,1)/0 bytes

01 Jun 2002

changed to work with R13.prerelease

19 May 2003

enhanced help

19 Apr 2005

added a conventient gui wrapper STOK and published M-file; expanded help section

22 Apr 2005

added help to stok

Contact us