필터 지우기
필터 지우기

How to randomly choose 3 values ​​from the first column.

조회 수: 2 (최근 30일)
hawk5577
hawk5577 2018년 11월 14일
답변: Bruno Luong 2018년 11월 14일
Hi
How to randomly choose 3 values ​​from the first column when I have various examples.
A=[ 1 0
2 1
0 4
4 3
5 7
3 6
7 3
9 5
9 6
10 7]
Thanks for help ;)

채택된 답변

Bruno Luong
Bruno Luong 2018년 11월 14일
A(randperm(size(A,1),3),1)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by