Dynamic plotting in MATLAB

I want to capture values from the arduino serial monitor and use it for plotting an array in MATLAB. I want to do so dynamically. So please could someone help me with this. The function should be such that it plots the graphs as the values are being sent by the sensor.

This might help? http://cnx.org/content/m12062/latest/

Hello i’m trying to do the same thing you are by using Matlab to communicate with an Arduino board if you could post on my topic so
that everyone that is doing something similar will be on the same disscussion board. I am e-mailing others so that they can do the same.

its under tricky_bluefox

Arduino used with MATLAB