NEED URGENT HELP WITH "LOAD" IN MATLAB

how to correctly load an image

Page 1 of 1

3 Replies - 2857 Views - Last Post: 18 March 2008 - 06:55 PM Rate Topic: -----

#1 Tavisha  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 42
  • Joined: 28-February 08

NEED URGENT HELP WITH "LOAD" IN MATLAB

Post icon  Posted 18 March 2008 - 04:05 PM

I am trying to load an image " lena.jpg" from one of my folders on to matlab window but no help...

how to correctly load an image.. please help me..
i am learning matlab!!


Looking for replies...

Thanks
Is This A Good Question/Topic? 0
  • +

Replies To: NEED URGENT HELP WITH "LOAD" IN MATLAB

#2 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1639
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: NEED URGENT HELP WITH "LOAD" IN MATLAB

Posted 18 March 2008 - 04:07 PM

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: :code:

Thanks :)


Show us the code you've tried and someone will help, but we're not going to provide code without seeing an effort from you :)
Was This Post Helpful? 0
  • +
  • -

#3 Tavisha  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 42
  • Joined: 28-February 08

Re: NEED URGENT HELP WITH "LOAD" IN MATLAB

Posted 18 March 2008 - 05:03 PM

Okay here it goes...

i take a lena.jpg which is stored in my directory which is opened in matlab current directory.

[code]

imread('lena.jpg');
load (lena.jpg');
imshow('lena.jpg')




Thanks!
Was This Post Helpful? 0
  • +
  • -

#4 Steven Smith  Icon User is offline

  • New D.I.C Head

Reputation: 6
  • View blog
  • Posts: 45
  • Joined: 17-March 08

Re: NEED URGENT HELP WITH "LOAD" IN MATLAB

Posted 18 March 2008 - 06:55 PM


imread('lena.jpg');
load (lena.jpg');
imshow('lena.jpg')




First problem. On load() you left out a ' on the left side. Doesn't change anything though.

Not exactly sure what the final product is supposed to be. I don't have the function imshow() in my Matlab install.

What I could get working was...

a=imread('lena.jpg');
image(a);





This printed the photo out to the plot area.
Was This Post Helpful? 1

Page 1 of 1