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

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

回答(1 个)

Image Analyst
Image Analyst 2019-5-25
Try randsample() or randperm().

类别

Help CenterFile Exchange 中查找有关 Get Started with Statistics and Machine Learning Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by