Does the Dependency Analyzer account for coding logic?

When running the Dependency Analyzer on my MATLAB Project, the "Problems" field says that I have missing toolboxes. With the logic of my code, the function requiring the toolbox isn't even executed. Why do I still receive the warning?

 Accepted Answer

The Dependency Analyzer ignores the logic of code and analyzes even dead portions of code. For example, analyzing the following portion of code will report Dependency on Simulink.
if false
load_system(vdp)
end

More Answers (0)

Products

Release

R2020a

Community Treasure Hunt

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

Start Hunting!