How to add a listener in Matlab for an Arduino input?

(deleted)

Did you see www.mathworks.com/help/matlab/ref/handle.listener.html ? It was the first link that came up for me when I searched for "matlab listener".

(deleted)

"I have tried searching on Google and MATLAB Answers but I found nothing."

What does this mean: "...but that method is not working here" ?

"Not working" could be some sort of compiler message, some sort of runtime message, or something else.

Perhaps we should see the code that is not working ?