for take long time

1 次查看(过去 30 天)
huda nawaf
huda nawaf 2011-11-19
hi,
I have vector of indices, I should look for indices in large vector of values, then arrange the values depend on their indices in that vector and place it in new vector.
I hope to use a command instead of for for searching , because it is taking long time.
index=[3 2 1 100......................] very long
values=[10 9 2 .....................]
new=[2 9 10.........................]
is there such command?
thanks
  2 个评论
Robert Cumming
Robert Cumming 2011-11-19
what have you tried?
huda nawaf
huda nawaf 2011-11-19
thanks , the problem is solved by walter

请先登录,再进行评论。

采纳的回答

Walter Roberson
Walter Roberson 2011-11-19
new = values(index);

更多回答(1 个)

huda nawaf
huda nawaf 2011-11-19
many many thanks for u and for matlab
you solved big problem

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by