I have an array of 19x2 double (r_F), contains 19 integers in column 1 and 2. Now I want to do a vlookup of integers that are stored in the array auswahl; the size is 100x1. If the integer of auswahl were find in column 1 of r_F then write the integer of column 2 in the array R_X. The following code do that for me.
R_X = ;
for i = 1:size(auswahl, 1)
index = find(r_F(:, 1) == auswahl(i));
content = r_F(index, 2);
disp(i + ": " + index + " " + content)
R_X = [R_X; content];
Strangely enough contains the result on index 23 and 74 0x1 empty double column vector?! Has anyone an idea why this is happen?