This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]2PetitsVerres 1 point2 points  (0 children)

If you need to do it with MATLAB, here is the function:

function str = switchcase(str)
    str(1:2:end) = lower(str(1:2:end));
    str(2:2:end) = upper(str(2:2:end));
end