You have to do this in a loop. If you do not want to use loops, you need a different structure for the data.
Sometimes CELLFUN helps, but of course this runs loops internally also, so there is no real need to try to "avoid" loops.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!