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

2 次查看(过去 30 天)
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