view flat_index.m @ 154:c7b2f645101f feature/grids

Added classes and functions for Cartesian and equidistant grids.
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 18 Feb 2016 16:46:02 +0100
parents 48b6fb693025
children
line wrap: on
line source

function I = flat_index(n,i,j)
    I = i + (j - 1)*n;
end