File Exchange

image thumbnail

vec2grid

version 1.3 (3.91 KB) by

Reshapes vector data to a grid

4 Downloads

Updated

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.

Comments and Ratings (2)

Noura Alkaabi

Thank you

Fair result, good and fast script.

Updates

1.3

Corrected github-renaming of entry

1.2

Linked to GitHub repository

1.1

Added support for unlimited dimensions in input data.

MATLAB Release
MATLAB 7.4 (R2007a)

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

» Watch video

Win prizes and improve your MATLAB skills

Play today