You can refer to the following MATLAB Answers page for a response to a similar question:
This File exchange submission might also be useful in your case:
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!