octave add row to matrix code example
Example: 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
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