I stumbled upon some matlab code where a 1D vector (say "signal" with length 100) is indexed by a 3D matrix (say "distances" with dimensions 10x10x10) and the result ("signal(distances)") is a 3D matrix with exact same dimensions 10x10x10 as the 3D matrix indexed by.
What does matlab actually do there? Where did the vector's elements go? Do you know keywords to search for?
I searched stackoverflow and the mathworks help pages with keywords like "indexing" and so on, but I didn't find anything useful...
Thank you!