Member of the matlab2tikz team.
Check out my guest post on http://undocumentedmatlab.com/blog/variables-editor-scrolling/
In 99% of the cases, I down-vote MATLAB solutions that contain eval().
eval()