I'm getting the error below using RootMUSICEstimator. When I set SpatialSmoothing=0 I get the same error. When I set it to -2, the error is 'Expected SpatialSmoothing to be nonnegative'
Error using coder.internal.assert (line 33) The value of SpatialSmoothing should not be larger than -1.
Error in coder.internal.errorIf (line 7) coder.internal.assert(~cond, msgID, varargin{:});
Error in phased.internal.AbstractULADOA/validatePropertiesImpl (line 48) coder.internal.errorIf(cond,'phased:phased:internal:AbstractULADOA:InvalidSpatialSmoothing', M – 2);
Error in phased.internal.AbstractULASubspaceDOA/validatePropertiesImpl (line 59) validatePropertiesImpl@phased.internal.AbstractULADOA(obj);
Error in phased.RootMUSICEstimator/validatePropertiesImpl (line 211) validatePropertiesImpl@phased.internal.AbstractULASubspaceDOA(obj);
Error in Array16 (line 19) ang = rootmusicangle(signal)
Fs=44100;H = phased.OmnidirectionalMicrophoneElement; array=phased.UCA('NumElements',16,'Radius',0.15,'Element',H);rootmusicangle = phased.RootMUSICEstimator('SensorArray',array,... 'OperatingFrequency',Fs,... 'NumSignalsSource','Property','NumSignals',1);rootmusicangle.ForwardBackwardAveraging = true;timepoint=[49.6, 49.7];Fs=44100;timepoint=timepoint.*Fs;signal=audioread('E:\Dropbox (MIT)\YilinGuo\16SoundUSB\16SoundUSB-multichannel.wav',timepoint);ang = rootmusicangle(signal)
Best Answer