Split data matrix into training, validation and test sets
Version 1.0.2 (1.58 KB) by
Krzysztof Wiktorowicz
Split randomly data matrix into training, validation and test sets.
Function splitdata.m splits the data matrix into training, validation and test sets. Moreover, it returns the appropriate indices of records in the data matrix.
Cite As
Krzysztof Wiktorowicz (2026). Split data matrix into training, validation and test sets (https://www.mathworks.com/matlabcentral/fileexchange/122662-split-data-matrix-into-training-validation-and-test-sets), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2022b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
