Only one answer can be accepted, as you have figured it out unaccepting and accepting the latter which you find useful for the need.
There is an exception though:
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!