Can the descriptions of all Model Advisor checks for R2021a be exported to Matlab workspace?

조회 수: 2 (최근 30일)
Need: Create a list of all Model Advisor checks available in R2021a including the descriptions for these checks.
In other words - For all the available checks organized in the drop down folder menu in Model Advisor below. I want to print each check's name and description (highlighted in yellow in screen capture) to the Matlab workspace, or export to a spreadsheet.
The aim is to avoid having to manually copy and paste each check + description into a spreadsheet.

채택된 답변

Fangjun Jiang
Fangjun Jiang 2023년 1월 24일
something like this:
Model='f14';
open(Model);
ma = Simulink.ModelAdvisor.getModelAdvisor(Model);
Checks=ma.CheckCellArray;
Description=cell(size(Checks));
for k=1:numel(Checks)
Description{k}=Checks{k}.Description;
end
xlswrite('CheckDescription',Description')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Run Model Advisor Checks에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by