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?

 採用された回答

MathWorks Support Team
MathWorks Support Team 2021 年 5 月 20 日

0 投票

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

その他の回答 (0 件)

カテゴリ

製品

リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by