I recently installed oct2py along with its dependencies in order to import a few matlab functions to be used in my python code. The .m file is located in the same directory as my python code.
Could you please help me figure out, how I would import those .m files along with the methods located within them and how would I use those functions within my python code, considering that the actual functions are defined in octave/matlab. I have included an example .m file with a function
function x=readfile(y)
% Puts the contents of a text file with path and name
% specified in string y, into char array x.
% Example: mystring = readfile('c:\workdir\readme.txt');
fid = fopen(y,'r'); % Read the Plaintext
M = fread(fid);
fclose(fid);
x = char(M');
The above function is located in a file named 'readfile.m' within the same directory as my python code.