From: Mateusz Gos on
The problem I am facing is as follows:
I have got a cell C = {'a' 'b' 'c'} and a vector V = [1 2 3], containing values that correspond to the names in cell (respectively). Now I get a new vector Vnew = [3 1] and want to somehow extract only the two corresponding elements from C, in the order they are in Vnem, so the result would be Cnew = {'c' 'a'}.

I have tried a couple of approaches, deploying cell, structures, string, but it seems to get me nowhere. Anyone can help?

cheers