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 @@
% 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'}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment