??? Error using==>simbio\private\odebuilder>buildPatternSubStrings
The object y does not resolve on reaction with expression'x*y'.
Error in ==> sbiogate at 22
feval(varargin{:});
??? --> Error reported from Expression Validation :
The object 'y' in reaction 'Reaction1' does not resolve
to any in-scope species or parameters.
--> Error reported from Dimensional Analysis :
Could not resolve species, parameter or model object 'y'
during dimensional analysis.
--> Error reported from ODE Compilation:
Error using==>simbio\private\odebuilder>buildPatternSubStrings
The object y does not resolve on reaction with expression 'x*y'.

Retrieve the error diagnostic struct.

p = sbiolasterror

p =
1x3 struct array with fields:
Type
MessageID
Message

Display the first error ID and Message.

p(1)

ans =
Type: 'Error'
MessageID: 'SimBiology:ReactionObjectDoesNotResolve'
Message: 'The object 'y' in reaction 'Reaction1'
does not resolve to any in-scope
species or parameters.'