How can I find the number of non-virtual blocks in my Simulink model?
13 ビュー (過去 30 日間)
古いコメントを表示
I want to find out the total number of non-virtual blocks in my model so that I can determine if it will run in a Student Version of MATLAB (which has a 1000 non-virtual block limit).
採用された回答
MathWorks Support Team
2009 年 6 月 27 日
To determine the number of non-virtual blocks in a Simulink model, open the model and type the following command at the MATLAB command prompt
length(find_system('ModelName', 'LookUnderMasks', 'on', 'FollowLinks', 'on','Virtual', 'off'))
However, in addition to a limit of 1000 non-virtual blocks, the student version may not have the libraries that the model might be using. Use the SLDIAGNOSTICS function with 'libs' option to obtain the list of libraries being accessed by the model as:
sldiagnostics('ModelName','libs')
where 'ModelName' is the name of the Simulink model.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Interactive Model Editing についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!