help-octave
[Top][All Lists]
Advanced

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

Re: octave to matlab conversion


From: Paul Kienzle
Subject: Re: octave to matlab conversion
Date: Thu, 6 Oct 2005 22:01:38 -0400

oct2mat.tar.gz at the octave-forge site used to be able to convert the signal processing functions.

Octave has since changed to be more compatible so it will need some work.

If you do work on it, put it under CVS control in octave-forge/extra/oct2mat.

- Paul

On Oct 6, 2005, at 4:51 PM, Ben Barrowes wrote:

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
-------------------------------------------------------------




-------------------------------------------------------------
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]