Add new column at the end of matrix

21 views (last 30 days)
Sunay Sao
Sunay Sao on 11 Sep 2020
Answered: KSSV on 11 Sep 2020
I have a 3x3 matrix i want to add a column at the end of matrix with A=[1,2,3]'

Answers (1)

KSSV
KSSV on 11 Sep 2020
A = rand(3) ;
B = [1 2 3]' ;
C = [A B]

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!