how to take set difference keeping the number of rows and columns same.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I have a matrix of 128*252 and second matrix of 128*21 .I want to take difference of these two matirx but in return i want 128*231 matrix ,but matlab gives me 29561*1 matrix. How to solve it? Any body please help its urgent.
Respuestas (1)
Walter Roberson
el 24 de Mayo de 2017
Consider that the set difference of [3 -7 18 3], against the empty set [], is [-7 3 18], with fewer entries in its representation, but [3 -7 18 4] against the empty set [] would be [-7 3 4 18] with the same number of entries. Therefore unless you happen to know some fairly strict properties on your matrices, the size of the set difference is not going to be predictable, and the result might or might not happen to have length divisible by the number of rows you have.
Perhaps you have some quite different idea of "set difference" in mind??
0 comentarios
Ver también
Categorías
Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!