Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
hawk5577
hawk5577 el 14 de Nov. de 2018
Respondida: Bruno Luong el 14 de Nov. de 2018
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 ;)

Respuesta aceptada

Bruno Luong
Bruno Luong el 14 de Nov. de 2018
A(randperm(size(A,1),3),1)

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by