I have 4 data sets and I want to use 50% of each data set?

1 view (last 30 days)
I am recoding the "Matlab_main_demo_SIMLR" code and I have 4 data sets and I want to use 50% of each data set?. U can check the attached photo.
Capture.JPG

Answers (1)

Image Analyst
Image Analyst on 25 May 2019
Try randsample() or randperm().

Community Treasure Hunt

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

Start Hunting!