Select values from 20 x 15 matrix based on a row vector 1 x 15
Mostrar comentarios más antiguos
I'm trying to extract values from matrix A (20 x 15) which are less than values in matrix B (1 x 15). Matrix B has 15 columns with threshold values determined from newspaper analysis. How to extract values from each column of matrix A which are less than values from corresponding columns from matrix B?
I have tried C = A < B; but I'm not able to fix matrix dimension error.
1 comentario
Steven Lord
el 7 de Nov. de 2019
Which release of MATLAB are you using? It may be relevant particularly if you're using a release prior to release R2016b, when we introduced implicit expansion.
Respuesta aceptada
Más respuestas (1)
kondepati sudhir kumar
el 7 de Nov. de 2019
0 votos
if use the C = A <B; you wil get the logic matrix. If you have dimensional error then it is better give the c = zeros (size (a));
i hope it works.
Categorías
Más información sobre Polygonal Shapes en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!