So I have 2d matrix and I want to extract every fifth value from the second column.
I know how to get all the values from the second column –
var = myMatrix(:,2);
But how can I only select every fifth value instead of all the values
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.
Depending on exactly what “every fifth value” means, I think that what you want is:
which returns