From c1a67f79945f67cd141c578a2e9f8a58f1b174a9 Mon Sep 17 00:00:00 2001 From: ZaellixA <axilleaz@protonmail.com> Date: Wed, 2 Apr 2025 16:52:56 +0100 Subject: [PATCH] Add short names for the figure-of-eight responses in firstOrderDma.m --- .../Array Processing/MATLAB/Functions/firstOrderDma.m | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Signal Processing/Array Processing/MATLAB/Functions/firstOrderDma.m b/Signal Processing/Array Processing/MATLAB/Functions/firstOrderDma.m index 6cfb3a3..d49e33d 100644 --- a/Signal Processing/Array Processing/MATLAB/Functions/firstOrderDma.m +++ b/Signal Processing/Array Processing/MATLAB/Functions/firstOrderDma.m @@ -3,7 +3,7 @@ % Author: Achilles Kappis % e-mail: axilleaz@protonmail.com % -% Date: 02/02/2025 (DD/MM/YYYY) +% Date: 01/04/2025 (DD/MM/YYYY) % % Copyright: MIT % -------------------------------------------------- @@ -26,7 +26,8 @@ % sensitive): % - Omni, Omnidirectional, % Monopole -% - Dipole, Figure-of-Eight +% - Dipole, Figure-of-Eight, +% Fig-Eight, Fig % - Cardioid, Cardio % - Hypercardioid, Hyper, % Hypercardioid2D, Hyper2D, @@ -121,7 +122,7 @@ function [h, output] = firstOrderDma(freq, d, pPattern, beta, input) if isstring(pPattern) || ischar(pPattern) validateattributes(pPattern, {'char', 'string'}, {'scalartext', 'nonempty'}, mfilename, 'Polar pattern', 3); validatestring(pPattern, ["Omni", "Omnidirectional", "Monopole", ... - "Dipole", "Figure-of-Eight", ... + "Dipole", "Figure-of-Eight", "Fig-Eight", "Fig", ... "Cardioid", "Cardio", ... "Hypercardioid", "Hyper", "Hypercardoid2d", "Hyper2d", "Hypercardoid3d", "Hyper3d", ... "Supercardioid", "Super", "Supercardoid2d", "Super2d", "Supercardoid3d", "Super3d"]); @@ -151,7 +152,7 @@ function [h, output] = firstOrderDma(freq, d, pPattern, beta, input) case {'omni', 'omnidirectional', 'monopole'} pPattern = pi; beta = 1; - case {'dipole', 'figure-of-eight'} + case {'dipole', 'figure-of-eight', 'fig-eight', 'fig'} pPattern = pi/2; beta = 0; case {'cardioid', 'cardio'} -- GitLab