matrix C from A and B
Mostrar comentarios más antiguos
Hey again I want function that gives matrix C from A and B thanks
in fact if we have the same raw in A and B , we delete it and the result will be the matrix C
6 comentarios
Image Analyst
el 30 de Mayo de 2014
So? Do you have a question?
Geoff Hayes
el 30 de Mayo de 2014
A little more detail is required...how is C to be constructed from A and B?
Firas
el 30 de Mayo de 2014
Geoff Hayes
el 30 de Mayo de 2014
So is your algorithm to find all rows that are distinct in A and B, assuming that A and B have the same number of columns?
Firas
el 30 de Mayo de 2014
Image Analyst
el 30 de Mayo de 2014
firas, it's like pulling teeth to get you to help us help you. I mean, most people would give example arrays for A, B, and C . Sure I can make up something, but why are you putting the burden on us? Why not make it EASY for us to help you ? Here, read this and then fix your post: http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
Respuesta aceptada
Más respuestas (1)
Sean de Wolski
el 30 de Mayo de 2014
Editada: Sean de Wolski
el 30 de Mayo de 2014
Or use setxor
>> C = setxor(A,B,'rows')
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!