Matlab Projects - Getting dependancies working right

I've created a matlab project called 'GenericFunctions'. The code has been pushed to our on site VSTS instance.
Now, I have another project, called 'ILSOP' which wants to reference a function, in the 'GenericFunctions' toolbox / project.
My idea on how this would work.
  1. Add the 'GenericFunctions' project as a submodule of the ILSOP project
  2. Add the 'GenericFunctinos' submodule .prj file, as a declared dependancy of the ILSOP project.
  3. Run dependancy analysis, and all would be well.
In fact, this doesn't work - the function I want to reference, which is called w_cell, and is included in the 'GenericFunctions' toolbox, is proclaimed a missing dependancy, despite it being a reference of a project, which is a submodule of this one.
Any guidance here on how dependancy resolution in projects is supposed to work?
Regards,
Simon

댓글 수: 1

Simon Parten
Simon Parten 2019년 3월 25일
편집: Simon Parten 2019년 3월 25일
Note that I'm also struggling with the docs;
And the link at the bottom for the airframe project
matlab:showdemo('sldemo_slproject_airframe_references')
does not appear to work on my installation of matlab 2019a.
Ah - looks like that project is a simulink project...

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

답변 (1개)

Aniket
Aniket 2025년 4월 8일
I am able to reference a function from another project using the steps you have mentioned with some changes. Please find below the exact workflow:
  1. Open 'ILSOP' project
  2. Add a relative/absolute reference to 'GenericFunctions' project
  3. Run dependency analysis, and the missing dependency is resolved.
If you still get 'w_cell is not found in the current folder or on the MATLAB path, but exists in: //path/to/GenericFunctions', I recommend using below function to refresh cache:
rehash toolboxcache
Once done, remove the reference to project and again add it.
I hope this helps resolve the issue.

카테고리

도움말 센터File Exchange에서 Using MATLAB Projects in Simulink에 대해 자세히 알아보기

제품

릴리스

R2019a

질문:

2019년 3월 25일

답변:

2025년 4월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by