COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### Plotting data with nonuniform mesh/grid?

• Email
• Follow

```Hi, I have a Problem. Im new to Matlab and have to solve a Problem:

I have a matrix with Data 354x350.

The axes are nonlinear x_axis 354x1 and nonlineary y-axis 350x1. I can plot the data but the Image is warped because it shows only evenly spaced axis.

Some Ideas anyone? I would really appreciate it.

Best regards.
```
 0

See related articles to this posting

```Hi Christian,

You can use

imagesc(x,y,Data)

after defining your non-linear vectors x and y.

Best.
```
 0

```"Sadik " <sadik.hava@gmail.com> wrote in message <ho120o\$smj\$1@fred.mathworks.com>...
> Hi Christian,
>
> You can use
>
> imagesc(x,y,Data)
>
> after defining your non-linear vectors x and y.
>
> Best.

Thank you for the answer but the image is still warped, plotting with mesh() works but I somehow need to transfer the data to a regular grid.
```
 0

```"Christian Koch" <christian.koch@abwesend.de> wrote in message <ho2bln\$2ha\$1@fred.mathworks.com>...
> > Hi Christian,
> >
> > You can use
> >
> > imagesc(x,y,Data)
> >
> > after defining your non-linear vectors x and y.
> >
> > Best.
>
> Thank you for the answer but the image is still warped, plotting with mesh() works but I somehow need to transfer the data to a regular grid.

If I understand the problem correctly this is what you need:

pcolor(x,y,Data)

Beware:you probably will have to change your x y coordinates to the "node" of the data (in between the coordinates where the data is defined).

Regards
```
 0
Reply z.rijnen (1) 8/2/2010 5:24:27 PM

3 Replies
1265 Views

Similar Articles

12/5/2013 7:47:14 AM
page loaded in 45945 ms. (0)