May be your problem is related to this:
http://www.mathworks.com/matlabcentral/newsreader/view_thread/300852
Bruno
http://www.mathworks.com/matlabcentral/newsreader/view_thread/300852
Bruno