- Setup your project 1 (“app1”)
- Setup your project 2 (“app2”)
- Add your project 2 as a referenced project in your project 1.
Sharing a file between multiple projects
13 ビュー (過去 30 日間)
古いコメントを表示
Heine Hørup Pedersen
2023 年 12 月 6 日
コメント済み: Heine Hørup Pedersen
2023 年 12 月 21 日
Im trying to get into the Projects but I struggle to figure out how to share a single file between multiple projects.
Lets say I have a two projects, one for App1 and another for App2
Both projects uses the same file named filereader. How do I add this file to both projects?
I have tried to add it using Project Path, but the path must be in the project root folder. If I drag/drop the file into the project it will be moved to the project folder.
One solution would be to create a 3rd project Shared that can be added as a reference in both projects. But I'm not fully convinced this is the way to go.
Best Regards
Heine
0 件のコメント
採用された回答
prabhat kumar sharma
2023 年 12 月 14 日
Hi Heine,
I understand that you are looking for a way by which you can use a single file in your multiple MATLAB project.
I am considering that you have the file inside the “ app2” only and to access that file in app 1.
So you can do the following:
You’ll get an o0ption to add references in the views column of your project.
So, when you’ll be loading the project 1 , then MATLAB will first automatically load the references and then your project will be getting loaded. So that’s how you can use the functionalities you have in your project 2.
I hope it helps.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!