Thread Subject: urgent

Subject: urgent

From: rawan

Date: 15 Apr, 2008 10:25:47

Message: 1 of 4

hold in matlab

i have a 35 points i plot them using the matlab i need to plot them inside a jpg which is a map

Subject: urgent

From: Eyal Fleminger

Date: 15 Apr, 2008 11:15:00

Message: 2 of 4

The obvious method is
1) open the jpg with imread
2) plot it with image
3) type "hold on"
4) plot the points you want (with plot or scatter or whatever function you
want)

Does this give you what you want? If not, please give some more details.


"rawan" <coolgirl_20024ever@hotmail.com> wrote in message
news:24213415.1208255177871.JavaMail.jakarta@nitrogen.mathforum.org...
> hold in matlab
>
> i have a 35 points i plot them using the matlab i need to plot them
> inside a jpg which is a map


Subject: urgent

From: rawan

Date: 17 Apr, 2008 07:29:32

Message: 3 of 4

thank u
but i tried this way before and it doesn't work the points go outside the map they are squeezed in a certain space outside the map

Subject: urgent

From: Peter Boettcher

Date: 17 Apr, 2008 13:41:09

Message: 4 of 4

rawan <coolgirl_20024ever@hotmail.com> writes:

> thank u but i tried this way before and it doesn't work the points go
> outside the map they are squeezed in a certain space outside the map

You need to match the coordinates. Display the image using x and y axes
"image(x,y,my_image)". "help image" for details on that syntax. Then
plot your points/lines using the same coordinate system.

Or convert the lines/points you want to plot into pixel coordinates, so
they line up with your image.

-Peter

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com