view flat_index.m @ 146:2ccfe80e9b58

toString: Now allows 2d cell arrays of strings.
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 21 Mar 2016 16:27:19 +0100
parents 48b6fb693025
children
line wrap: on
line source

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