How can I create P-code for main script along with their sub-scripts?

2 views (last 30 days)
Kaustubh hike
Kaustubh hike on 16 Aug 2021
Commented: Walter Roberson on 16 Aug 2021
Hi,
How can I create P-code for main script along with their sub-scripts?
I am calling all subscripts in main scirpt.

Accepted Answer

Wan Ji
Wan Ji on 16 Aug 2021
You can make main file like this
function main()
% main file body
end
function fun1()
% fun1
end
function fun2()
% fun2
end
...
Then pcode your main file!
  3 Comments
Walter Roberson
Walter Roberson on 16 Aug 2021
pcode accepts wildcards and folder names.
However by itself it does not analyze functions or scripts to figure out what is called, especially not from other directories.

Sign in to comment.

More Answers (0)

Products


Release

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by