ita_fourpole_multiplication.m 1.85 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
function varargout = ita_fourpole_multiplication(varargin)
%ITA_FOURPOLE_MULTIPLICATION - multiplies fourpole matrices
%  This function multiplies fourpole matrices
%
%  Syntax:
%   audioObjOut = ita_fourpole_multiplication(audioObjIn, options)
%
%   Options (default):
%           'opt1' (defaultopt1) : description
%           'opt2' (defaultopt1) : description
%           'opt3' (defaultopt1) : description
%
%  Example:
%   audioObjOut = ita_fourpole_multiplication(audioObjIn)
%
%   Reference page in Help browser 
%        <a href="matlab:doc ita_fourpole_multiplication">doc ita_fourpole_multiplication</a>

% <ITA-Toolbox>
% This file is part of the application TPA-TPS for the ITA-Toolbox. All rights reserved.
% You can find the license for this m-file in the application folder.
% </ITA-Toolbox>


% Author: Pascal Dietrich -- Email: pdi@akustik.rwth-aachen.de
% Created:  20-Apr-2010 

% For some more help read the 'ITA Toolbox Getting Started.pdf' 
% delivered with the ITA-Toolbox in the documentation directory, or use the
% wiki which provides more or less actual informations about the
% development. (https://www.akustik.rwth-aachen.de/ITA-Toolbox/wiki)

%% Get Function String
thisFuncStr  = [upper(mfilename) ':'];     %Use to show warnings or infos in this functions

%% Initialization and Input Parsing
% all fixed inputs get fieldnames with posX_* and dataTyp
% optonal inputs get a default value ('comment','test', 'opt1', true)
% please see the documentation for more details
sArgs        = struct('pos1_data','itaAudioFrequency','pos2_data','itaAudioFrequency');
[a,b,sArgs]  = ita_parse_arguments(sArgs,varargin); %#ok<NASGU>

%% 

c(1,1) = a(1,1) * b(1,1) + a(1,2) * b(2,1);
c(1,2) = a(1,1) * b(1,2) + a(1,2) * b(2,2);
c(2,1) = a(2,1) * b(1,1) + a(2,2) * b(2,1);
c(2,2) = a(2,1) * b(1,2) + a(2,2) * b(2,2);

%% Set Output
varargout(1) = {c}; 

%end function
end