Code covered by the BSD License  

Highlights from
vec2grid

5.0

5.0 | 1 rating Rate this file 5 Downloads (last 30 days) File Size: 1.85 KB File ID: #21617

vec2grid

by Kelly Kearney

 

29 Sep 2008 (Updated 29 Sep 2008)

Reshapes vector data to a grid

| Watch this File

File Information
Description

This function reformats a list of 2-d or 3-d datpoints to a grid, similar to the results of the griddata function but without any interpolation. It reshapes the data using all unique x, y, and if applicable, z coordinates as rows, columns, and pages of the final data grid.

Overall, this function is a useful alternative to griddata when your data is already on a grid but stored as a list of coordinates. It is more flexible than a simple reshape because it allows data points to be listed in any order, and allows for missing grid points.

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
08 Apr 2010 Stelios Flamp

Fair result, good and fast script.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
matrices Kelly Kearney 22 Oct 2008 10:22:05
reshape Kelly Kearney 22 Oct 2008 10:22:05
griddata Kelly Kearney 22 Oct 2008 10:22:05
grid Kelly Kearney 22 Oct 2008 10:22:05
regridding Kelly Kearney 22 Oct 2008 10:22:05

Contact us at files@mathworks.com