Get the value of an array from another array in Matlab
I have an array A 20x1 double and another array B which is 1000x1 double. I want to set array C where array C will be 1000x1 double where the first value in it is equal to the C[1] = A[B[1]] and so on like C[i] = A[B[i]] how this can be done?