Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
Vernon Easter
Vernon Easter el 26 de Ag. de 2022
Respondida: Walter Roberson el 26 de Ag. de 2022
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.

Respuestas (2)

Chunru
Chunru el 26 de Ag. de 2022
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 comentarios
Chunru
Chunru el 26 de Ag. de 2022
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 el 26 de Ag. de 2022
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?

Iniciar sesión para comentar.


Walter Roberson
Walter Roberson el 26 de Ag. de 2022
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

Categorías

Más información sobre CubeSat and Satellites en Help Center y File Exchange.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by