フィルターのクリア

No documentation for function 'gsb' (get selected blocks)

5 ビュー (過去 30 日間)
Eugene Ofori
Eugene Ofori 2022 年 7 月 9 日
編集済み: Abderrahim. B 2022 年 7 月 9 日
I just noticed that MATLAB already has a function to return the currently selected blocks in a subsytem called 'gsb'. It's seems to be connected with the function such as gcb, gcbh, gcs, which make it easy to get information about you r simulink model. However MATLAB doesn't have any documentation online about it (I had to open the function and look at the comments to see the usage). Has anyone heard of this function and does anyone know why its being hidden? Is MATLAB trying to deprecate the function?

採用された回答

Abderrahim. B
Abderrahim. B 2022 年 7 月 9 日
編集済み: Abderrahim. B 2022 年 7 月 9 日
You re right, online there is no documentation. However, an offline documentation for gsb is available (kind of help).
Try this in command window:
doc gsb
An alternative is to use find_system with gcs
% Select blocks in a model
selectedBlks = find_system(gcs,'Selected','on');

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by