Selecting values without using randperm

I have a code
A=F_mid;
size(A);
[r10 c10]=size(A)
p = randperm(size(A,1));
out = A(p(1:(r10-7)),:);
cut_points=sort(out);
in that randperm function should not be used,please help,because every if i run my code time my output keeps changing,

 채택된 답변

Andrei Bobrov
Andrei Bobrov 2012년 2월 18일

0 개 추천

try this is
A=F_mid;
[r10 c10]=size(A)
out = A(fix(linspace(1,r10,r10-7)),:);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Parallel Computing Toolbox에 대해 자세히 알아보기

태그

질문:

2012년 2월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by