Help for this page
1. $matlab_cmd_str = "$path_to_matlab -nodesktop -r my_script"; 2. open(RUN_MATLAB, "$matlab_cmd_str |") ... 5. } 6. my $return_status = close(RUN_MATLAB); 7. unless($return_status) { print STDERR "There was a problem: $?\n" +}
$sts = system($matlab_cmd_str);
my $stdout = qx/$matlab_cmd_str/;