help-octave
[Top][All Lists]
Advanced

[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 
matlab-style
m-files?

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 
processing
toolboxes. Or at times when octave-style source is better/more available than 
the
corresponding ML source.

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

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.

bb


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:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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