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.
Ben Barrowes (2021). oct2ml (https://www.mathworks.com/matlabcentral/fileexchange/8972-oct2ml), MATLAB Central File Exchange. Retrieved .
it seems line 12 of oct2ml.m should be changed as [temp1,filename_funname,temp2]=fileparts(filename); in matlab 2018
it should run on octave
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);
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!