view flat_index.m @ 546:19951684588e feature/grids

Add type assertion
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 23 Aug 2017 11:05:35 +0200
parents 48b6fb693025
children
line wrap: on
line source

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