How to randomly select an array of 20 nonrepeating values from another array which has 100 values with positive or negative values.

How to randomly select an array of 20 nonrepeating values from another array which has 100 values with positive or negative values inside.

Answers (2)

like lets say,
its a 3*20 matrix i want to generate, from 3*100 matrix,
i want to select 20 random column, but that 20 random column's corrospending row should not be changed.

Categories

Find more on Random Number Generation in Help Center and File Exchange

Products

Release

R2021a

Asked:

on 4 Jun 2022

Edited:

on 4 Jun 2022

Community Treasure Hunt

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

Start Hunting!