Get from Ico-github-logo

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

  • vec2grid(varargin)
    VEC2GRID Grid ND data without interpolation
  • View all files
5.0 | 1 rating Rate this file 10 Downloads (last 30 days) File Size: 3.91 KB File ID: #21617 Version: 1.3



Kelly Kearney (view profile)


29 Sep 2008 (Updated )

Reshapes vector data to a grid

| Watch this File

File Information

This function reformats a list of n-dimensional datpoints to a grid, similar to the results of the griddata function but without any interpolation. It reshapes the data using all unique coordinates as rows, columns, pages, etc. 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   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
22 Mar 2017 Noura Alkaabi

Thank you

Comment only
08 Apr 2010 Stelios Flamp

Fair result, good and fast script.

04 Nov 2013 1.1

Added support for unlimited dimensions in input data.

18 Aug 2015 1.2

Linked to GitHub repository

29 Mar 2016 1.3

Corrected github-renaming of entry

Contact us