I really don't see the point of that kind of problems where you can't use Matlab built-in functions.
which functions?
Omit columns averages from a matrix
530 Solvers
"Low : High - Low : High - Turn around " -- Create a subindices vector
325 Solvers
Matrix indexing with two vectors of indices
492 Solvers
Remove the two elements next to NaN value
419 Solvers
504 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!