"Steven_Lord" <email@example.com> wrote in message <firstname.lastname@example.org>... > > > "Simon12345 " <email@example.com> wrote in message > news:firstname.lastname@example.org... > > 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 > email@example.com > 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?