Quellcode durchsuchen

label B-format plot properly if the Z component is replaced by a virtual cardioid

Fernando Pablo Lopez-Lezcano vor 9 Jahren
Ursprung
Commit
9abf720efa
1 geänderte Dateien mit 6 neuen und 2 gelöschten Zeilen
  1. 6 2
      calibration/src/sphear_bf_plot.m

+ 6 - 2
calibration/src/sphear_bf_plot.m

@@ -26,7 +26,7 @@
 %%  You should have received a copy of the GNU General Public License
 %%  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-function [BF] = sphear_bf_plot(BF, fmin, fmax, rmax)
+function [BF] = sphear_bf_plot(BF, fmin, fmax, rmax, cardioid = 0)
 
   if (!exist("plot_on"))
     plot_on = "epsc";
@@ -44,7 +44,11 @@ function [BF] = sphear_bf_plot(BF, fmin, fmax, rmax)
   thetaf = (0:n)*(2*pi/n);
   
   %% plot it as a function of angle
-  bname = cellstr(['W'; 'X'; 'Y'; 'Z']);
+  if (cardioid)
+    bname = cellstr(['W'; 'X'; 'Y'; 'Cardioid']);
+  else
+    bname = cellstr(['W'; 'X'; 'Y'; 'Z']);
+  end
 
   f = figure;
   for b = 1:4