I really don't see the point of that kind of problems where you can't use Matlab built-in functions.
which functions?
Find state names that end with the letter A
708 Solvers
6281 Solvers
284 Solvers
Getting the indices from a vector
3207 Solvers
Create an index-powered vector
352 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!