Your answer for plot updating in matlab was great. (http://stackoverflow.com/questions/13102654/how-should-i-update-the-data-of-a-plot-in-matlab). I have a follow up question regarding that and since I donot have enough points to post comments, I have created a new question. (http://stackoverflow.com/questions/27365927/how-should-i-update-the-data-of-a-plot-in-matlab-part-2). Do take a look at it if you can.

Thanks in advance

]]>Your answer regarding matlab plotting by calling c / c++ code in matlab in stackoverflow was really good. I wanted some help regarding the same . Is it possible you can help me. ]]>

Instead, simply change it to:

[dummy,nMaxContrastLocation] = max(nContrastProfile);

]]>