File Exchange

image thumbnail

oct2ml

version 1.1.0.0 (9.05 KB) by Ben Barrowes
Converts octave style m-files to matlab style m-files

32 Downloads

Updated 18 Jun 2009

View Version History

View License

This small converter aims to accept octave style m-files and output matlab style m-files. Somewhat basic: # to %, ! to ~ and so on. A small script to convert directories containing octave m-files is included. Put directories of converted m-files at the _end_ of your matlab path.

See README for more information on how to use the files.

Cite As

Ben Barrowes (2020). oct2ml (https://www.mathworks.com/matlabcentral/fileexchange/8972-oct2ml), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

milosr

kun liu

it seems line 12 of oct2ml.m should be changed as [temp1,filename_funname,temp2]=fileparts(filename); in matlab 2018

asdd fghfgh

study

C. Peng

it should run on octave

Jinho Jang

I am using R13M6.5 and this is making errors.

??? Undefined function or variable 'replaceword_f'.

Error in ==> C:\MATLAB6p5\work\ama\oct2ml.m (wordconverter_o)
On line 726 ==> funstr=replaceword_f(i,j,funstr,funstrwords,funstrwords_b,funstrwords_e,repstr);

Error in ==> C:\MATLAB6p5\work\ama\oct2ml.m
On line 93 ==> [funstr,tempflag,temp2]=wordconverter_o(i,j,funstr,funstrnumbers,funstrnumbers_b,funstrnumbers_e,funstrwords,funstrwords_b,funstrwords_e,formats);

MATLAB Release Compatibility
Created with R14SP2
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!