Selecting random points from data file
이전 댓글 표시
Hi, is there any algorethim to select random points from a large data file. Lets say I want to select data after every 20 values. x = [1:0.1:1000]
If I want y = select every 10th 20th or 50th point of x
Thanks Amb
댓글 수: 4
per isakson
2014년 12월 12일
편집: per isakson
2014년 12월 12일
Try
>> M = 1:100;
M(20:20:100)
ans =
20 40 60 80 100
but that's hardly random.
Azzi Abdelmalek
2014년 12월 12일
The question is not clear, "10th 20th or 50th point of x"
amberly hadden
2014년 12월 12일
amberly hadden
2014년 12월 12일
채택된 답변
추가 답변 (1개)
카테고리
도움말 센터 및 File Exchange에서 Interpolation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!