How to Determine Project dependency for Appdesigner in MATLAB 2017b

조회 수: 3 (최근 30일)
Saif Khan
Saif Khan 2020년 3월 4일
답변: Aniket 2025년 4월 10일
I have a project that is a single main app in app designer that i am using as a shell to call 3 matlab scripts and 7 app designer apps. I want to determine Toolbox dependency on the entire project, however the MATLAB documentation mostly shows how to run dependency analysis for simulink models. I have used dependencies.toolboxDependencyAnalysis function on my matlab script files and app files but it only returns {'MATLAB'} . Any Suggestions ?
  댓글 수: 2
Image Analyst
Image Analyst 2020년 3월 9일
Are you certain there are other things called other than what's in base MATLAB?
Saif Khan
Saif Khan 2020년 3월 10일
편집: Saif Khan 2020년 3월 10일
One of the apps is utilizing "Instrument Control Toolbox" for an external device , another app is using "Image Acquisition Toolbox" for using a camera and "Image Processing Toolbox" for data from the camera.

댓글을 달려면 로그인하십시오.

답변 (1개)

Aniket
Aniket 2025년 4월 10일
I am able to reproduce this issue in R2017b. It seems to be a bug in dependencies.toolboxDependencyAnalysis, and is resolved in latest versions of MATLAB.
I have created a file with blocks from multiple toolboxes.
This is the output in R2017b:
>> dependencies.toolboxDependencyAnalysis({'instrument'})
ans =
1×1 cell array
{'MATLAB'}
Output from R2024b:
>> dependencies.toolboxDependencyAnalysis('instrument')
ans =
1×4 cell array
{'Aerospace Toolbox'} {'Audio Toolbox'} {'MATLAB'} {'Simulink'}
As a workaround in R2017b, I suggest using matlab.codetools.requiredFilesAndProducts which returns a list of the MathWorks® products possibly required to run the program files specified by files as second output.
[fList,pList] = matlab.codetools.requiredFilesAndProducts('filename')
{pList.Name}'
Note: This function returns some additional products also which might not be relevant to the file provided and are installed with your MATLAB.
Please find more details regarding this function here:
I would recommend upgrading MATLAB to the latest version to avoid all these dicrepencies.

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for IP Cameras에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by