Dear OX-users,
There is probably a simple solution to this, but the only one I can
imagine is a very inefficient loop (the "real life" vectors are big):
I have a vector WA=[7 5 4 3]
and a matrix:
WV=[1 2 3 4 5 6 7 |
0.1 0.2 0.3 0.4 0.5 0.6 0.7]
I need to extract the elements of WV corresponding to WA:
FV=[7 5 4 3 |
0.7 0.5 0.4 0.3]
How can I do this?
Thank you in advance for your help,
Marie-Edith.
_______________________________________________________________________
Marie-Edith Bissey email: [log in to unmask]
Department of Economics tel: (+44) 1904 43 35 72
University of York fax: (+44) 1904 43 37 59
YORK YO1 5DD
UK.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|