

concatenate two or more string from matrix
If I have 2 (or more) matrices of strings, and I want to concatenate a component of a matrix with a component of the second matrix, how can I do?
I can concatenate a string from a matrix and a value from a matrix?
Thank you fearly.
Scilab


Suppose, a=[1 2 3; 4 5 6; 7 8 9] and b=[3 2 1;6 5 4;9 8 7]
1. If you want to concatenate 1st and 2nd row of matrix 'a' and 3rd row of matrix 'b',
then use, d=[a(1:2,:);b(3,:)]
2. If you want to concatenate 2nd row and 3rd column element/component of mat 'a' and 3rd row 3rd column element/component of matrix 'b' then, c=[a(2,3), b(3,3)]
Login to add comment