Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
fig3_14.m
fig3_14.pdf
fig3_14.plt
fig3_14.png
fig3_14_errata.png

README.md

Fig 3.14

Figure 3.14: Sound pressure of cosine shaped impulse synthesized as a plane wave by NFC-HOA (2.45) and WFS (2.57) at three different listening positions. A fixed offset was added to the sound pressure at two listening positions for a better visualization. Parameters: n_k = (0,−1,0), x_ref = (0,0,0), circular secondary source distribution with a diameter of 3 m.

Errata

With release 2.4.0 of the SFS Toolbox for Matlab the numerical problems apparent in the above figure could be resolved (code to reproduce this figure).

Fig 3.14

Steps for reproduction

Matlab/Octave:

>> fig3_14

Bash:

$ gnuplot fig3_14.plt

Problem solving

If you run the above command in Octave it could happen that you get an error like

error: zp2sos: A(I,J): row index out of bounds; value 1 out of bound 0

This happens if you have a new version of the zp2sos Octave Forge function installed. The problem was introduced with commit f248ba. This error can be solved if you change line 105 in driving_function_imp_nfchoa_pw.m of the Sound Field Synthesis Toolbox from

sos = zp2sos(p,z*c/R,2,'down','none');

to

[sos,~] = zp2sos(p,z*c/R,2,'down','none');

The same solution holds for Fig. 3.13, Fig. 3.15.