asserts.columnVector
Check that a value is a column vector.
📝Syntax
asserts.columnVector(value)
[res, msg] = asserts.columnVector(value)
📥Input Arguments
Parameter Description
value Value to test.
📤Output Arguments
Parameter Description
res true if the assertion passes, false otherwise.
msg assertion failure message, empty on success.
📄Description

The assertion passes when value has column-vector shape.

Diagnostics report the computed class and dimensions.

💡Examples
Column vector
asserts.columnVector([1; 2]);
Capture a shape failure
[res, msg] = asserts.columnVector([1 2]);
🔗See Also
asserts.rowVectorasserts.vector
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub