Create an array containing indeces and value
Afficher commentaires plus anciens
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
Réponses (2)
Would this be a simplified example fo what you mean?
[A,B]=ndgrid(1:5)
C=A.^2+B.^2
1 commentaire
Paola
le 21 Avr 2022
Matt J
le 21 Avr 2022
0 votes
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.
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!