mysql - Return perl array to MATLAB -


is there way return perl array matlab? or have return string , parse it? i'm using call matlab perl script interface mysql database. after results of query, want pass matlab.

edit: i'm using modified version of perl.m call perl script. calls version of perl dbi installed, rather copy comes matlab.

i changed line 65 of perl.m from

perlcmd = fullfile(matlabroot, 'sys\perl\win32\bin\'); 

to

perlcmd = 'c:\perl64\'; 

how calling perl script? if doing system call, can return string output.

you wrapping call in mex file, or writing .mat files perl, suspect string parsing may easier, small arrays

edit

think did once in similar situation (had transfer data matlab) generate .m file creates matlab matrix, i.e.

array = [           1, 2, 3;           4, 5, 6;          ]; 

and save disk. when program finished called m-file data workspace


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -