in reply to Re^3: calling MATLAB from perl in order to create a .mat file
in thread calling MATLAB from perl in order to create a .mat file

Ken, Poor form aside - which I'll work on - I can execute MATLAB from within Perl but given the following: <x=0,1,2;y=0,1,2;plot(x,y,'o');save test;> can Perl create a .mat file with these statements so that the file "test.mat" would be created?
  • Comment on Re^4: calling MATLAB from perl in order to create a .mat file

Replies are listed 'Best First'.
Re^5: calling MATLAB from perl in order to create a .mat file
by kennethk (Abbot) on Jan 21, 2010 at 20:21 UTC
    For the piping scenario you used above (Using open() for IPC), the question is not can Perl create a .mat file but can MATLAB. This literally feeds these commands to the MATLAB executable via its command line interface, and hence my concern about not working with command line MATLAB for about a decade.