From: Bryant Svedin on
I was having a similar problem and this fixed it.

http://www.mathworks.com/matlabcentral/fileexchange/6626

Hope that helps.