Pārlūkot izejas kodu

add LevedevGrid.m, needed by mic_array_sim_dfr and copied from the Ambisonics Decoder Toolbox by Aaron Heller

Fernando Pablo Lopez-Lezcano 10 gadi atpakaļ
vecāks
revīzija
4eb91a3a20
1 mainītis faili ar 13 papildinājumiem un 0 dzēšanām
  1. 13 0
      LebedevGrid.m

+ 13 - 0
LebedevGrid.m

@@ -0,0 +1,13 @@
+function [ a ] = LebedevGrid( order )
+    %LebedevGrid Lebedev points and weights for spherical harmonic order
+    %   Detailed explanation goes here
+    
+    degree = [6, 14, 26, 38, 50, 74, 86, 110, 146, 170, 194, 230, 266, ...
+        302, 350, 434, 590, 770, 974, 1202, 1454, 1730, 2030, 2354, ...
+        2702, 3074, 3470, 3890, 4334, 4802, 5294, 5810];
+    
+    a = getLebedevSphere(degree(order));
+    [ a.theta a.phi ] = cart2sph(a.x, a.y, a.z);
+
+end
+