Catch all Warnings from Code Generation

4 Ansichten (letzte 30 Tage)
Antonio Pavic
Antonio Pavic am 30 Aug. 2019
Beantwortet: Yogesh Khurana am 16 Dez. 2019
Hello,
As the title says, I want somehow to be able to get all the warning messages from a Code Generation report into the MatLab Workspace in order to further evaluate those warnings. The only thing I came up with right now is the lastwarn function which only returns me the last warning. But if I can somehow catch the last warning this means there has to be a way to catch all the warnings from a report. I hope you can help me, thanks in advance.

Antworten (1)

Yogesh Khurana
Yogesh Khurana am 16 Dez. 2019
By default, all the warnings are available in the All Messages pane of the report generated from MATLAB Coder or GPU Coder. While opening the report, the default landing page is Summary. All Messages is a page alongside Summary. Please have a look I think all the warnings should be available there.
There can be a case that the number of warnings is more than count that can come on that page, in this case try to resolve some of the warnings from the available warnings and then generate the code again. This will show the new warnings again.
Hope this helps!

Kategorien

Mehr zu MATLAB Report Generator finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by