Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

I need a list of Matlab keywords for a text editor

99 views
Skip to first unread message

Michael Robbins

unread,
Aug 19, 1999, 3:00:00 AM8/19/99
to
I want to write a contextual highlighting file for TextPad 4 and I need
a list of Matlab keywords to do this. Is there a list I can use?


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

Michael Robbins

unread,
Aug 19, 1999, 3:00:00 AM8/19/99
to
Just e-mail me for them:

<michael...@us.cibc.com>

Michael Robbins

unread,
Aug 19, 1999, 3:00:00 AM8/19/99
to

Peter J. Acklam

unread,
Aug 19, 1999, 3:00:00 AM8/19/99
to
Michael Robbins <michael...@us.cibc.com> writes:
>
> I want to write a contextual highlighting file for TextPad 4 and I
> need a list of Matlab keywords to do this. Is there a list I can use?

I'm not 100% sure what you mean by "keywords", but Matlab 5.3.0.10183
(R11) has the following 16 reserved words:

break case catch dbcont
else elseif end for
global if otherwise persistent
return switch try while

Note that `end' is special: When it is used as the last index in an
indexing expression it is a function call and should not be highlighted
as a keyword. So `end' should only be highlighted when it appears at
parenthesis level zero.

Peter

--
Peter J. Acklam - jac...@math.uio.no - http://www.math.uio.no/~jacklam

Marco De la Cruz

unread,
Aug 19, 1999, 3:00:00 AM8/19/99
to
Michael Robbins <michael...@us.cibc.com> writes:

> I want to write a contextual highlighting file for TextPad 4 and I need
> a list of Matlab keywords to do this. Is there a list I can use?

The MATLAB "pretty printing" a2ps stylesheet I
wrote for MATLAB 5.3 is available from:
http://128.100.80.13/marco/matlab/matlab5.ssh

It contains a list of all words that "mean something
special" to MATLAB (although it doesn't include commands
from the various toolboxes).

Hope this helps...

_________________________________
ma...@chinook.physics.utoronto.ca
Gunnm: Broken Angel
http://128.100.80.13/marco/alita.html

Edward Manlove

unread,
Aug 22, 1999, 3:00:00 AM8/22/99
to Michael Robbins
Michael,

Here is a url for someone who has done work with importing MATLAB into
latex. Near the bottom of this page is some information about an m-file
script written by another users to convert ascii to ps. Marco De la
Cruz wrote
a MATLAB V4 and V5 style file for the script. There is a list of
keywords in this file. The url is

http://128.100.80.13/marco/matlab/coolplot.html

IHTH

Ed

Michael Robbins wrote:

--
--------------------------
Edward C Manlove
Graduate Student
University of Rhode Island

email: man...@ele.uri.edu
phone: 401-782-1327 (H)
--------------------------


0 new messages