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.
- Add the 'GenericFunctions' project as a submodule of the ILSOP project
- Add the 'GenericFunctinos' submodule .prj file, as a declared dependancy of the ILSOP project.
- 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
2019 年 3 月 25 日
編集済み: Simon Parten
2019 年 3 月 25 日
回答 (1 件)
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:
- Open 'ILSOP' project
- Add a relative/absolute reference to 'GenericFunctions' project
- 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 についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!