Getting simscape custom libraries loaded folder path from script

2 vues (au cours des 30 derniers jours)
Ranjith Prakash
Ranjith Prakash le 24 Mar 2023
Hii,
I have created few custom simscape libraries and loaded same in matlab. Is there any way to get the folder path location of the those libraries i have loaded from matlab script.
Thanks

Réponses (1)

Piyush Dubey
Piyush Dubey le 7 Avr 2023
Modifié(e) : Piyush Dubey le 7 Avr 2023
Hi,
Once a custom library is created, it can be added to the existing library browser.
Steps mentioned below can be followed to locate the path of a block programmatically.
Alternatively, ‘libinfo’ can be used to obtain relevant data regarding a block in the system.
matlab.desktop.editor.getActiveFilename attribute can be used to get the path of a script/file currently being used or accessed
I hope this might be helpful.

Catégories

En savoir plus sur Simscape dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by