Create an array containing indeces and value
Mostrar comentarios más antiguos
Hi everyone,
I have a problem that I don't know how to solve. How Can I create an array C from two matrix A (50X100)and B (50X100) where the matrix B contains the x coordinates of the value contained in Matrix A (meaning that to the value in the first row A correspond the coordinates in the first row B)?
Thank you so much
Respuestas (2)
Would this be a simplified example fo what you mean?
[A,B]=ndgrid(1:5)
C=A.^2+B.^2
1 comentario
Paola
el 21 de Abr. de 2022
Matt J
el 21 de Abr. de 2022
0 votos
I need to the cross correlate the "combined" vectors with another vector. I don't know how to do it if they are separated.
xcorr2() or imfilter() should do that directly.
Categorías
Más información sobre Creating and Concatenating Matrices 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!