Probability, Statistics, and Applications in BME
조회 수: 1 (최근 30일)
이전 댓글 표시
Write a MATLAB program to simulate the selection of two 20-item lists from a 500item sample.
댓글 수: 0
답변 (1개)
Bhaskar R
2020년 2월 3일
data_500 = rand(1, 500); % 500 random values
values_40 = randperm(500, 40); % 40 random values(2*20 items)
first_20list = data_500(values_40(1:20)); % selection first 20 items list from 500 samples
second_20list = data_500(values_40(21:end));% selection second 20 items list from 500 samples
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!