I am given the equations and know that the 3x3 matrix as a and then the numbers that are after my equal sign I assigned that b so it is a 3x1 and i have found the rank for a but i dont know how to do the rank(ab) i have tried typing it a few different was including rank(a b) rank(ab) rank (a;b) and none of them work

回答(1 个)

Do you mean you want to augment the matrix a with the vector b?
A = [1 2 3; 4 5 6; 7 8 9]
A = 3×3
1 2 3 4 5 6 7 8 9
b = [10; 11; 12]
b = 3×1
10 11 12
Ab = [A, b]
Ab = 3×4
1 2 3 10 4 5 6 11 7 8 9 12

类别

帮助中心File Exchange 中查找有关 Function Creation 的更多信息

产品

版本

R2021b

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by