RPCODE

Generates P-files for all M-files recursively in all subfolders

You are now following this Submission

RPCODE Generates P-files for all M-files recursively in all subfolder

RPCODE: without any arguments generates P-files for all the M-files in current directory and in its subdirectories recursively.
RPCODE(path): generates P-files for all the M-files in directory 'path' and in its subdirectories recursively.

RPCODE(path,flag): if the flag -INPLACE is used, the result is placed in the same directory in which the corresponding M-file was found. Otherwise, the result is placed in the current directory.

INPUT:
path - name of the directory
flag - flag for if the result is placed in the same directory '-inplace') or current directory


EXAMPLES:
CurrPath = pwd;
rpcode(CurrPath,'-inplace');

Cite As

Durga Lal Shrestha (2026). RPCODE (https://au.mathworks.com/matlabcentral/fileexchange/19332-rpcode), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: SUBDIR *new*

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

Formatting of description
BSD License