How do I call a MATLAB function from another directory without adding the files to the path?
Afficher commentaires plus anciens
I have two MATLAB functions I would like to use. Let's call them "f.m" and "g.m". In addition, I have some data store in file "data.m" that is in a subfolder of the location of "g.m". Functions "f.m" and "g.m", and file "data.m" are all located in different folders outside of the MATLAB path.
I am calling "f" first, and then at some point in the execution of "f" I call "g". When "g" is called, it needs to access the data in "data". I am calling "f" from an external application, so I cannot use the GUI to add the files to the path. I want to do this without using the "addpath" or "genpath" functions. Is this even possible?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Search Path dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!