random distribution row number
19 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Abraham J Pulickal
el 8 de Dic. de 2020
Respondida: Ive J
el 8 de Dic. de 2020
I have matrix A with 1×10 elements and B with 1×125 elements. But elements in B are those elements in A only but randomly distributed. Now I want to get the row number of each element in B corresponding to matrix A.. can anybody help me .. thanks in advance
0 comentarios
Respuesta aceptada
Ive J
el 8 de Dic. de 2020
[idxB, idxA] = ismember(B, A);
idxA is index of A members in B.
0 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!