The issue was that the message is in the form of cell array so I converted into char first and it worked.
So, am closing this question.
Info
This question is closed. Reopen it to edit or answer.
This question is closed.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!