I want to add a vector to an existing matrix.
Example:
matrix=[1 2 3 4 5 6 0 7 0] vector = [7 8] So the target is to find the equal number of vector and matrix for example with:
ismember(matrix,vector) After that the vector should insert into the matrix like the following:
matrix=[1 2 3 4 5 6 0 7 0 0 8 0]