To find if rank(a) = rank(a|b)
, where a
is a matrix and b
is a vertical vector, in MATLAB, you can use the rank
function and matrix concatenation ([a,b]
) to create the augmented matrix a|b
.
Here's an example code snippet that demonstrates how to do it:
main.m281 chars15 lines
Make sure you have the MATLAB Symbolic Math Toolbox installed to use the rank
function.
gistlibby LogSnag