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.
16 lines
477 B
Matlab
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]);
|
|
|
|
|
|
|