"Simon12345 " <firstname.lastname@example.org> wrote in message news:email@example.com... > "Steven_Lord" <firstname.lastname@example.org> wrote in message > <email@example.com>... >> >> >> "Simon12345 " <firstname.lastname@example.org> wrote in message >> news:email@example.com... >> > Hi, >> > >> > something very basic is going wrong here. >> > I try to import an image into my workspace with: >> > >> > A = imread('roof.jpg'); >> > >> > I also tried >> > >> > roof = imread('roof','jpg'); >> > >> > And what I get back is: >> > >> > Index exceeds matrix dimensions. >> > I tried multiple different jpeg's and also png, tiff, jpeg 2000, always >> > the same. >> > What am I doing wrong? >> >> You have likely defined a variable named imread in your code. You cannot >> use the IMREAD function while such a variable exists. >> >> -- >> Steve Lord >> firstname.lastname@example.org >> To contact Technical Support use the Contact Us link on >> http://www.mathworks.com > > No I haven't, just opened up Matlab. > Also did: > clear all; close all; to be sure. > It happens ocassionally...You have any ideas?
When it occurs, type this command:
y = MException.last
What are the contents of the stack field of y? Also look at the specified line in the function specified by the first element of y.stack to try to determine the cause.