1% bf = bf_array_xyz(bf) 2% 3% Inputs 4% bf.mic_x ... x coordinates [m] 5% bf.mic_y ... y coordinates [m] 6% bf.mic_z ... z coordinates [m] 7% 8% Outputs 9% bf.mic_n ... Number of microphones 10% bf.mic_x ... x coordinates [m] 11% bf.mic_y ... y coordinates [m] 12% bf.mic_z ... z coordinates [m] 13 14% SPDX-License-Identifier: BSD-3-Clause 15% 16% Copyright (c) 2020, Intel Corporation. All rights reserved. 17% 18% Author: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com> 19 20function bf = bf_array_xyz(bf) 21 22bf.mic_n = length(bf.mic_x); 23bf.mic_x = bf.mic_x - mean(bf.mic_x); 24bf.mic_y = bf.mic_y - mean(bf.mic_y); 25bf.mic_z = bf.mic_z - mean(bf.mic_z); 26 27end 28