並前往https://www.mathworks.com/matlabcentral/fileexchange/55517-simple-repeated-and-nested-cross-validation-and-bootstrapping-fold-generation?s_tid=prof_contriblnk