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

2 views (last 30 days)
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

Answers (1)

Fangjun Jiang
Fangjun Jiang on 3 Feb 2023
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.

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!