view flat_index.m @ 854:18162a0a5bb5 feature/burgers1d

Merged branch with default for latest change set
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Fri, 12 Oct 2018 08:50:25 +0200
parents 48b6fb693025
children
line wrap: on
line source

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