|
On Nov 11, 7:21=A0pm, "Claus " <il_consigli...@excite.com> wrote:
> I feel silly asking this question, but can't figure out how to load a jpg=
image from my desktop.
>
> When I enter:
> load 'C:\Documents and Settings\cbecker\Desktop\Tree.jpg'
> a file pops up in the workspace called "Tree". It is empty, however.
>
> If I put the path into Explorer the right image pops up, so the path shou=
ld be correct.
>
> I searched for the image files that come with Matlab, but could not find =
one (e.g. Clown, or Durer) of that name, even if I can "load Durer".
>
> I searched through the help files, but can't find that anyone asked the q=
uestion previously.
>
> It is probably really trivial, but I can't figure it out. Can you help?
>
> Thanks,
>
> Claus
>
> Here is my info:
> Operating System: Microsoft Windows XP Version 5.1 (Build 2600: Service P=
ack 2)
> Java VM Version: Java 1.6.0_04 with Sun Microsystems Inc. Java HotSpot(TM=
) Client VM mixed mode
> -------------------------------------------------------------------------=
--=AD----------
> MATLAB =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Version 7.7 =A0 =A0 =A0 =A0(R2008b)
> Simulink =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0Version 7.2 =A0 =A0 =A0 =A0(R2008b)
> Financial Toolbox =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
=A0 =A0 =A0 =A0 Version 3.5 =A0 =A0 =A0 =A0(R2008b)
> Mapping Toolbox =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 Version 2.7.1 =A0 =A0 =A0(R2008b)
> Optimization Toolbox =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0Version 4.1 =A0 =A0 =A0 =A0(R2008b)
> SimEvents =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
=A0 =A0 =A0 =A0 =A0 =A0 Version 2.3 =A0 =A0 =A0 =A0(R2008b)
> Spreadsheet Link EX =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 Version 3.0.2 =A0 =A0 =A0(R2008b)
> Stateflow =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
=A0 =A0 =A0 =A0 =A0 =A0 Version 7.2 =A0 =A0 =A0 =A0(R2008b)
> Statistics Toolbox =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0Version 7.0 =A0 =A0 =A0 =A0(R2008b)
Loading an image is a very complicated thing for a computer to do.
Use the dedicatse imread function:
im=3Dimread('C:\Documents and Settings\cbecker\Desktop\Tree.jpg');
imshow(im,[])
|