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 Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by