GAUSS2D Generate a 2 dimentionnal gaussian matrice

Usage: >> [ gaussmatrix ] = gauss2d( rows, columns, sigmaR, sigmaC, meanR, meanC, cut)

Example: >> gauss2d( 5, 5)

Inputs:
rows   
number of rows
columns   
number of columns
sigmaR   
standart deviation for rows (default: rows/5)
sigmaC   
standart deviation for columns (default: columns/5)
meanR   
mean for rows (default: center of the row)
meanC   
mean for columns (default: center of the column)
cut   
percentage (0->1) of the maximum value for removing values in the matrix (default: 0)

Ouput:
gaussmatrix   
gaussian matrix

See the matlab file gauss2d.m (may require other functions)

Back to functions