Answers for "octave add row to matrix"

0

octave add row to matrix

a = [1 2 3 ; 4 5 6; 7 8 9];
b = [5 5 5]  
c = [a;b] % add one row
c = [a;repmat(b,7,1)] %add 7rows
Posted by: Guest on June-09-2021

Browse Popular Code Answers by Language