"Simon12345" wrote in message <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?
Any joy if you try renaming the file - to something unique ?