view +grid/funcToMatrix.m @ 208:40dda96c8c9c feature/grids

blockmatrix: Added function to convert regular matrix to blockmatrix.
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 15 Jun 2016 17:25:40 +0200
parents 7cb97c1988d9
children 5f75d7094983
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)
    reshapeRowMaj(gf, g.size());
end