Get .mdl list of Simulink browser libraries

조회 수: 5 (최근 30일)
Gireg
Gireg 2011년 5월 23일
Hello,
Does it exist a Matlab command that give the list of mdl files appearing in the Simulink Browser? I mean each library in the Simulink browser has a mdl file associated to, how can I get the list of those files with a Matlab command?
Thanks you!

채택된 답변

Kaustubha Govind
Kaustubha Govind 2011년 5월 23일
I don't know of a public API that provides this information, but I do know that all libraries must provide a slblocks.m on the MATLAB path for it to show up in the Simulink Library window. So you could potentially find all these files by executing "which -all slblocks", and execute each of them to look into the blkStruct.Browser.Library fields to find the name of the corresponding .mdl file.
  댓글 수: 1
Gireg
Gireg 2011년 5월 24일
Thank you very much, it works for me!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by