matlab - Ignoring similar columns when concating matrixes vertically -


In matlab I have 128 by a matrix, which we can call

[ABC]

Where each letter is 128 by a matrix.

So what I want to do, processes the matrix with another matrix,

[A ~ DE].

A where the values ​​of A are the same. What do I want to get as a result of the concert:

[ABCDE],

Where A is dropped.

What is the best way to do this? Note that I do not already know that there is a similarity.

To clarify, my problem is how do I decide that two columns are the same? In the same way I mean that between the two columns, many of the row values ​​are close to the value.

Perhaps an example would also help

  vector A: [1 2 3 4 5 6 7 8 9] '| | | | | | | | | Vector B: [20 2.4 4 5 7 7 7.6 10] Where are some examples where prices are completely different, but for the most part the value is close to me. There is no defined limit for this, but ideally it will be something that I can use.   

If you want to leave only same columns, do so One way is:

 % # Define the example matrix matrix 1 = [1 2 3; 4 5 6; 7 8 9] '; Matrix 2 = [4 5 6; 7 8 10] '; Add% # matrix and keep only the unique columns. Output Matrix = Exclusive ([matrix 1, matrix 2] ',' rows ')';    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -