Matlab * .p file runs from R

Using R.Matlab or another tool, is there a way to run the pre-processed psuedocode Matlab file (* .p) from R. All the input data files to which this * .p preliminary analysis is performed are asci (. Csv) located in the directory from which R. will be launched. There is also a fixed-name parameter file (text file) that is read or requested.

+4
source share
2 answers

It's impossible. MATLAB *.p files are encoded / encrypted files that can only be executed in MATLAB. It is also not possible to convert them to a regular MATLAB file ( *.m ). You don’t know where you got the name: "pre-parsed psuedocode file" from, a *.p file is formally called a "protected function file".

+5
source

You may have some options if you have access to Matlab.

  • If you have Matlab on your computer, you can use the COM interface to run the p file in Matlab, and then get the results.
  • If you have accessed the remote computer. It seems with codegen you can create c-code from a p file. Suppose you can even create a library using mbuild. they should work flawlessly.
+4
source

Source: https://habr.com/ru/post/1395862/


All Articles