how do you use randperm to select a m-by-n matrix of data and output a smaller subset of that random data?
i.e
newfile = randperm(data(m = 2000, n = 3)); %% save random m-by-n data as newfile
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Consider this example:
Note that R2011b introduced an easier syntax for RANDPERM, allowing you to directly write: