필터 지우기
필터 지우기

Can folks replicate the discrepancy in the number of model advisor checks between command line and dialog box queries for R2021b and R2022a?

조회 수: 1 (최근 30일)
Question: Can folks replicate the discrepancy in the number of model advisor checks between command line and dialog box queries for R2021b and R2022a?
Need: Determine the total number of unique Model advisor checks in versions R2021 and R2022b
Context:
  • There appears to be a discrepancy between the total number of checks reported in Model Advisor dialog box relative to the number reported in the Matlab Command line. The rationale that there are duplicated checks does not appear to explain the differences between command line totals and dialog box totals.
  • The attached image shows a summary table of the number of checks reported by R2021b and R2022a in their respective dialog box displays and command line outputs.
  • R2021b: By product = 716 | By Task = 1264 | Command line total = 706
  • R2022a: By product = 119 | By Task = 78 | Command line total = 238
  • Reference: <<SUMMARY_MODEL_ADVISOR_CHECK_COMPARISON_R2021B_R2022A.png>>
The following attached images show the number of checks displayed by the Model Advisor dialog box for task and product totals, as well as command line for R2021b and R2022a:
  • Reference:
  • R2021B_MODEL_ADVISOR_BY_PRODUCT.PNG
  • R2021B_MODEL_ADVISOR_BY_TASK.PNG
  • R2021B_MODEL_ADVISOR_BY_COMMAND_LINE.PNG
  • R2022A_MODEL_ADVISOR_BY_PRODUCT.PNG
  • R2022A_MODEL_ADVISOR_BY_TASK.PNG
  • R2022A_MODEL_ADVISOR_BY_COMMAND_LINE.PNG

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2023년 2월 3일
I can see the differences in R2022b. You want to know why they are different, or what exactly are the difference?
From the Model Advisor dialog, you can select a catagory, e.g. "By Product", right click, "Select All", and then "Send Check IDs to Workspace". Then in Command Window, you can run SetA=ans; to save the checks in "By Product".
Repeat this for "By Task", "Upgrade Advisor", "Performance Advisor", etc.
Then you can do, All_UI_Checks=[SetA, SetB, SetC]
Check uniqueness: unique(All_UI_Checks)
All_Cmd_Checks=getCheckAll(ma);
You can see the difference by running setdiff(All_Cmd_Checks, All_UI_Checks).
There are still more checks from the Comand line.
I know Model Advisor UI can be customized to include more or less checks. The question is why some of the available checks don't show up in the dialog. From the setdiff, I can see a few catagories but I can't explain why.
  댓글 수: 1
James Pflumm
James Pflumm 2023년 2월 6일
Thank you Fangjun for the steps above. I followed up with Mathworks service support to ask why there is this difference between versions.

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

카테고리

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

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by