Skip to content
Snippets Groups Projects
Commit c1a67f79 authored by Achilles Kappis's avatar Achilles Kappis
Browse files

Add short names for the figure-of-eight responses in firstOrderDma.m

parent 9546ed42
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
% Author: Achilles Kappis % Author: Achilles Kappis
% e-mail: axilleaz@protonmail.com % e-mail: axilleaz@protonmail.com
% %
% Date: 02/02/2025 (DD/MM/YYYY) % Date: 01/04/2025 (DD/MM/YYYY)
% %
% Copyright: MIT % Copyright: MIT
% -------------------------------------------------- % --------------------------------------------------
...@@ -26,7 +26,8 @@ ...@@ -26,7 +26,8 @@
% sensitive): % sensitive):
% - Omni, Omnidirectional, % - Omni, Omnidirectional,
% Monopole % Monopole
% - Dipole, Figure-of-Eight % - Dipole, Figure-of-Eight,
% Fig-Eight, Fig
% - Cardioid, Cardio % - Cardioid, Cardio
% - Hypercardioid, Hyper, % - Hypercardioid, Hyper,
% Hypercardioid2D, Hyper2D, % Hypercardioid2D, Hyper2D,
...@@ -121,7 +122,7 @@ function [h, output] = firstOrderDma(freq, d, pPattern, beta, input) ...@@ -121,7 +122,7 @@ function [h, output] = firstOrderDma(freq, d, pPattern, beta, input)
if isstring(pPattern) || ischar(pPattern) if isstring(pPattern) || ischar(pPattern)
validateattributes(pPattern, {'char', 'string'}, {'scalartext', 'nonempty'}, mfilename, 'Polar pattern', 3); validateattributes(pPattern, {'char', 'string'}, {'scalartext', 'nonempty'}, mfilename, 'Polar pattern', 3);
validatestring(pPattern, ["Omni", "Omnidirectional", "Monopole", ... validatestring(pPattern, ["Omni", "Omnidirectional", "Monopole", ...
"Dipole", "Figure-of-Eight", ... "Dipole", "Figure-of-Eight", "Fig-Eight", "Fig", ...
"Cardioid", "Cardio", ... "Cardioid", "Cardio", ...
"Hypercardioid", "Hyper", "Hypercardoid2d", "Hyper2d", "Hypercardoid3d", "Hyper3d", ... "Hypercardioid", "Hyper", "Hypercardoid2d", "Hyper2d", "Hypercardoid3d", "Hyper3d", ...
"Supercardioid", "Super", "Supercardoid2d", "Super2d", "Supercardoid3d", "Super3d"]); "Supercardioid", "Super", "Supercardoid2d", "Super2d", "Supercardoid3d", "Super3d"]);
...@@ -151,7 +152,7 @@ function [h, output] = firstOrderDma(freq, d, pPattern, beta, input) ...@@ -151,7 +152,7 @@ function [h, output] = firstOrderDma(freq, d, pPattern, beta, input)
case {'omni', 'omnidirectional', 'monopole'} case {'omni', 'omnidirectional', 'monopole'}
pPattern = pi; pPattern = pi;
beta = 1; beta = 1;
case {'dipole', 'figure-of-eight'} case {'dipole', 'figure-of-eight', 'fig-eight', 'fig'}
pPattern = pi/2; pPattern = pi/2;
beta = 0; beta = 0;
case {'cardioid', 'cardio'} case {'cardioid', 'cardio'}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment