cantera/interfaces/matlab/toolbox/gaussian.m
Ray Speth 2528df0f75 Reorganized source tree structure
These changes make it unnecessary to copy header files around during
the build process, which tends to confuse IDEs and debuggers. The
headers which comprise Cantera's external C++ interface are now in
the 'include' directory.

All of the samples and demos are now in the 'samples' subdirectory.
2012-02-12 02:27:14 +00:00

16 lines
477 B
Matlab

function g = gaussian(peak, center, width)
%
% GAUSSIAN - create a Gaussian Func instance
%
% gaussian(peak, center, width)
%
% peak - the peak value
% center - value of x at which the peak is located
% width - full width at half-maximum. The value of the
% function at center +/- (width)/2 is one-half
% the peak value.
%
g = Func('gaussian', 0, [peak, center, width]);