Help for this page

Select Code to Download


  1. or download this
      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"
    +}
    
  2. or download this
      $sts = system($matlab_cmd_str);
    
  3. or download this
      my $stdout = qx/$matlab_cmd_str/;