Code covered by the BSD License  

Highlights from
Huygens-Fresnel integral approximation, free-form apertures and rough surfaces

image thumbnail

Huygens-Fresnel integral approximation, free-form apertures and rough surfaces

by

 

Simulate wave propagation through free-form apertures, or off rough surfaces.

createStruct(type, varargin)
function obj = createStruct(type, varargin)
% createStruct - call the respective 'create' function

if ~ischar(type)
	displayMessage(-1, 'ERROR: invalid type specifier (only characters)');
end

switch lower(type)
	case 'options'
		obj = createOptions(varargin{:});
	case 'source'
		obj = createSource(varargin{:});
	case 'surface'
		obj = createSurface(varargin{:});
	otherwise
		error('ERROR: unknown type specifier');
end

Contact us