view flat_index.m @ 155:cf748f33cd5b feature/grids

Removed some extra lines, added some notes and comments. Fixed classname.
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 18 Feb 2016 17:17:41 +0100
parents 48b6fb693025
children
line wrap: on
line source

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