assertWarn.m

conditional warning, similar to ASSERT

You are now following this Submission

Generate warning when condition is violated, simialr to ASSERT.
Function is meant to work similarly to ASSERT, but throw a warning instead of an error.
(not to be confused with assertWarning function in the unit test framework. )
Modelled on built in functions Warning and Assert.

Cite As

christhechris (2026). assertWarn.m (https://www.mathworks.com/matlabcentral/fileexchange/47680-assertwarn-m), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

fix tags

1.0.0.0