view +grid/funcToMatrix.m @ 523:3c062cc72986 feature/grids

Merge with default
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 01 Aug 2017 12:35:38 +0200
parents 5f75d7094983
children bc2be302df90
line wrap: on
line source

% Converts a gridfunction to a matrix
% Takes a grid function and and a structured grid.
function F = funcToMatrix(g, gf)
    F = reshapeRowMaj(gf, g.size());
end