selecting top values

조회 수: 4 (최근 30일)
kash
kash 2012년 1월 29일
i HAVE A CODE BELOW
ind=nchoosek(1:100,2);
data12=[1:100]
FC1=data12(ind)
in this i get numel(FCI)=9600
i need only less than 100 values,i need to select only 1st 2 values from top ist 100 ,ist 2 values from 2nd 100 and so on ,please help

채택된 답변

Walter Roberson
Walter Roberson 2012년 1월 29일
I have read this question several times, but it still does not make sense to me.
What are "top values"? And which matrix are you referring to wanting the entries from?
If you are referring to the FC1 array as being the one you want to sub-select from, then
FC1(1:100:end, :)
  댓글 수: 1
kash
kash 2012년 1월 29일
Thanks walter

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 NaNs에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by