view +grid/funcToMatrix.m @ 163:51aaf67a7df5 feature/grids

Fixed naming and added functions for converting vectors to matrices for structured grid.
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 22 Feb 2016 13:55:19 +0100
parents
children 7cb97c1988d9
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)
    reshapeKronVector(gf, g.size());
end