4.75

4.8 | 4 ratings Rate this file 13 Downloads (last 30 days) File Size: 3.73 KB File ID: #293

uneven

by Oyvind Breivik

 

09 Jan 1998

Display unevenly distributed data in 2-D and 3-D as ordinary colour-coded, regularly spaced data.

| Watch this File

File Information
Description

FFGRID and DENSITY display unevenly distributed data in 2-D and 3-D as ordinary colour-coded, regularly spaced data. This is very useful when dealing with data which are difficult to view using plot3 (which, in my experience, is the case with all 3-D data that are not completely smooth).

FFGRID is a Fast `n' Furious way to do the same job that griddata does for you. The difference is that there is no interpolation. Empty points are left empty rather than trying to fill them using neighbouring points. Also, FFGRID has no problem with multiple points that fall in the same grid cell. Data are displayed using PCOLOR unless output arguments are specified, in which case the matrix of (regularly spaced) data is given along with the vectors s specifying x- and y-dimensions.

DENSITY is akin to HIST in that it displays a density distribution, but this time in 2-D rather than 1-D.

BIN is a small M-file that is needed for FFGRID and DENSITY to do the job right.

MATLAB release MATLAB 5.2 (R10)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
19 Dec 2002 Charles Holland

Worked great, except that using pcolor crashes my machine (PC win2000 running MatLab v6.1).

Imagesc works fine

29 Jan 2003 Amir Ibrahim

A very usaeful function.
Exactly what I needed.
Matlab should have a similar functionality by default.
REally appreciate the author's effort.

02 Jul 2003 David Beer

IT gives me the error message that matrix dimensions must agree, where griddata doesn't.
I was really hoping it would work b/c griddata is so slow

16 Dec 2005 Mark Ireland

Exactly what I needed.
Quick and very useful.

01 May 2007 waad subber

Good Job:) Thanks

30 Jul 2010 Guillaume

Hi, do you have some simple example about how to use it ?

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
specialized Oyvind Breivik 22 Oct 2008 06:35:47
plotting Oyvind Breivik 22 Oct 2008 06:35:47
display unevenly distributed data in 2d and 3d as ordinary colou Oyvind Breivik 22 Oct 2008 06:35:47
display unevenly distributed data in 2d and 3d as ordinary colou Longsheng Wang 27 Sep 2011 21:57:54
plotting Juliano 13 May 2012 15:52:48

Contact us at files@mathworks.com