フィルターのクリア

Extract functionality from add-on to run program without add-on

1 回表示 (過去 30 日間)
Vernon Easter
Vernon Easter 2022 年 8 月 26 日
回答済み: Walter Roberson 2022 年 8 月 26 日
I have a program which uses the Satellite Comunications Toolbox. My supervisor would like to be able to run the program without having to install said toolbox. I am having trouble extracting the appropriate functions from this toolbox in order to get it working in this manner..
The toolbox specific code I am using is groundStation(), satelliteScenario(), satellite(), access(), accessStatus(), aer(), and states().
My supervisor implied that I should be able to copy and paste the relevant .m files into my workspace. I am unable to locate the relevant files. Has anyone done this before? I have had trouble finding others who have attempted the same.
I am aware the Satellite Communications Toolbox has dependencies on other tooboxs. In this case, I'm imagining other files will have to be copied from those, though relating to the above statements, I am unsure as to exactly what those are.

回答 (2 件)

Chunru
Chunru 2022 年 8 月 26 日
MATLAB has a tool to find the required files for running a program.
% files = "YourMainMatlabFile.m"
[fList, pList] = matlab.codetools.requiredFilesAndProducts(files)
From here, you can check out which files to extract. It is also noted that the orighinal customised toolbox may have its own folder structure and in this case you may need to modified the individual code as well.
  6 件のコメント
Chunru
Chunru 2022 年 8 月 26 日
I see. You are using matlab SatCom toolbox, which is organized as packages and classes (with many private class functions). There might even be some p-code. It is not easy to extract the code.
A tedious way is to run your code in debugger and step through the code to see which functions are called. But it is definately not recommended.
Vernon Easter
Vernon Easter 2022 年 8 月 26 日
Looking at the files, there is definitely some p-code. Thanks for the recommendation. I supposed I'll have to do that. Any tips haha?

サインインしてコメントする。


Walter Roberson
Walter Roberson 2022 年 8 月 26 日
The license terms do not permit you to copy toolbox files for use by someone who does not have the toolbox.
You should have a look at MATLAB Compiler

カテゴリ

Help Center および File ExchangeCubeSat and Satellites についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by