I'm a new guy for matlab loop. Righi now I want to now some rools about loop(for…end). Such as how to make a loop to get all odd numbers from a matrix x=[1:100] or numbers like 1,5,9,13,17,21…? p.s.I know this x1=x(1:2:100) and x4=(1:4:100),but I want to know how to get it from a loop(for…end).
MATLAB: How to make a loop(for…end)
matlab loop for
Best Answer