random entry selection from a matrix

回答(1 个)

Doug Hull
Doug Hull 2012-7-23
v = [1:10]
vi = randi(numel(v));
choice = v(vi)

类别

帮助中心File Exchange 中查找有关 Logical 的更多信息

提问:

2012-7-23

Community Treasure Hunt

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

Start Hunting!

Translated by