copp.diag.last_error

Return the native COPP last-error diagnostic snapshot.

Syntax

info = copp.diag.last_error()

Description

Ordinary MATLAB users usually handle COPP failures with try/catch and copp.diag.CoppError.from_exception(err). This helper is mainly useful for diagnostics after calling lower-level MEX-backed APIs.

Output Arguments

info

Returned value from copp.diag.last_error. See Description for its shape and meaning.

See Also

copp.diag