[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

octave to matlab conversion

From: Ben Barrowes
Subject: octave to matlab conversion
Date: Thu, 6 Oct 2005 16:51:28 -0400
User-agent: KMail/1.7.2

Does anyone have a handy piece of code to convert octave-style m-files to 

This is becoming relevant as octave's source is many times used in a matlab 
setting when one
does not want to buy ML toolboxes, case in point, the statistics or signal 
toolboxes. Or at times when octave-style source is better/more available than 
corresponding ML source.

This converter does not need to be very complicated... I am thinking of the 
obvious things 
# => %
! => ~
endfunction => end
columns => size( ,2)

simple, yet tedius if done by hand (or even macros/awk/sed/perl scripts).

If not, I think I might write one (in octave/ML) and put it on the FEX.


BTW, is there any reason that these different conventions were adopted aside 
from stylistic
considerations? The endfunction and its cousins (endofr, etc.) are more 
explicit and
understandable, but why a new comment character?

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]