https://uk.mathworks.com/help/simbio/ref/sbiolastwarning.html
sbiolastwarning - SimBiology last warning message - MATLAB
This MATLAB function or diagstruct = sbiolastwarning return a SimBiology diagnostic structure array containing the last warnings generated by the software.
last warningsimbiologymessagematlab