Printing a dataset as part of error message

I am trying to put check in my process that if there is any duplicate item in inputs, error out the program. I am able to find what are the duplicate items and print simple error message using MException()
But i want print the dataset also so that user know what are the duplicate items. What do i do?

Answers (0)

Categories

Find more on Scope Variables and Generate Names in Help Center and File Exchange

Asked:

on 8 Jan 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!