diff --git a/Sound Fields/MATLAB/Functions/ptSrcFieldTD.m b/Sound Fields/MATLAB/Functions/ptSrcFieldTD.m index 83013985c01109d97da8612bdc361cbb594a42da..f470b8bcad3cddc169ab702fc35ecbf6b4dfcd72 100644 --- a/Sound Fields/MATLAB/Functions/ptSrcFieldTD.m +++ b/Sound Fields/MATLAB/Functions/ptSrcFieldTD.m @@ -58,6 +58,10 @@ % source averaged over the trials/sound field % realisations. This is an IxMxN array. % +% Q [numeric]: The source signals. If Q is provided, the same variable is +% returned here. If Q is generated internally, the signals are +% returned. +% % -------------------------------------------------- % Notes % @@ -68,12 +72,12 @@ % long source signals % % -------------------------------------------------- -function [rSig, rSigMean, rSigMtx, rSigMtxMean] = ptSrcFieldTD(sPos, rPos, fs, Q, nTrials, c) +function [rSig, rSigMean, rSigMtx, rSigMtxMean, Q] = ptSrcFieldTD(sPos, rPos, fs, Q, nTrials, c) % ==================================================== % Check for number of arguments % ==================================================== narginchk(3, 6); - nargoutchk(0, 4); + nargoutchk(0, 5); % ==================================================== % Validate input arguments