for take long time

조회 수: 2 (최근 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