ooDACE toolbox  1.4
 All Classes Files Functions Variables Pages
Functions
makeGrid.m File Reference

Functions

function makeGrid (var sizes)
 Construct a matrix of size prod(sizes) by length(sizes)'' where the rows represent all gridpoints on asizes'' sized grid.
 

Detailed Description

Authors
Ivo Couckuyt
Version
1.4 ($Revision$)
Date
$LastChangedDate$
Copyright 2010-2013

This file is part of the ooDACE toolbox and you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation. With the additional provision that a commercial license must be purchased if the ooDACE toolbox is used, modified, or extended in a commercial setting. For details see the included LICENSE.txt file. When referring to the ooDACE toolbox please make reference to the corresponding publications:

Contact : ivo.c.nosp@m.ouck.nosp@m.uyt@u.nosp@m.gent.nosp@m..be - http://sumo.intec.ugent.be/?q=ooDACE Signature g = makeGrid( sizes )

Function Documentation

function makeGrid ( var  sizes)

Construct a matrix of size prod(sizes) by length(sizes)'' where the rows represent all gridpoints on asizes'' sized grid.

Example:

makeGrid( [3 1 2 2] )

ans = 1 1 1 1 1 1 1 2 1 1 2 1 1 1 2 2 2 1 1 1 2 1 1 2 2 1 2 1 2 1 2 2 3 1 1 1 3 1 1 2 3 1 2 1 3 1 2 2