Borrar filtros
Borrar filtros

how to find the position of a char matrix where the value is equal to an another matrix

1 visualización (últimos 30 días)
hi, I have two char arrays (of different lenght)
I need something that for every row of matrix B evaluates which is the position of the same number in the matrix A.
The important thing is to compare the rows of both matrices as they are a single value (matrix B is a 5x4 and i need to consider it as it is a 5x1 vector. Same for A)
i tried both the find and intersection function, but i'm not getting the desired output...

Respuesta aceptada

Jiri Hajek
Jiri Hajek el 7 de Dic. de 2022
Hi, for this purpose you can use ismember function.

Más respuestas (0)


Más información sobre Creating and Concatenating 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!

Translated by