I found a problem with statistical variation functions plot_theta_statvar and plot_phi_statvar. The random errors were not being applied to all array elements; note these functions do not affect other calculations. I think a line of code got moved during testing and I forgot to put it back. Apologies for any confusion / inconvenience caused.

The corrections are included in an update v2.4.2, however this is pending approval by an administrator.

If you are wanting to use the statistical variation functions you can download v2.4.2 here :

Regarding the case sensitivity, I have submitted V2.4.1 with all filenames in lower case but so far it has not appeared on the exchange site. I will have another go today since it does seem to be causing problems on later versions of Matlab.

Regarding the pattern1.mat data, this should be generated from the raw NEC2 data by the previous function :

loadnecpat1('dipole'); on line 20

It could be that Matlab is not able to find the raw data or the format of the .mat files has changed. I've sent you an e-mail with the file attached anyway.

I only have Matlab V6 so it is very hard to track down errors on later versions.

However, do let me know if you have any other problems.

Hi Changshun,
The change in coordinate system for the rectangular patch is only a transposition of axes : x->Z, y->X and z->Y where x,y,z are the original model and X,Y,Z are those used by ArrayCalc. This means that the same formulas can be used as long as the axes are transposed before the formulas are applied. (Ref patchr.m lines 32-38 in the element models directory).

The reason for the transposition is to ensure the Patch's E-field is aligned with ArrayCalc's X-axis. (See section 4.2 the Theory of operation for why this convention is used).

Sorry I haven't got back to you sooner, I've e-mailed you directly to clarify exactly what type of acoustic array. Drop me an e-mail if you are still needing the information, I do have some acoustic array examples.

Dear Neill
when i run any example like Ex1 im getting the following error
??? Undefined function or method 'design_patchr' for input arguments of type 'double'.
Error in ==> Ex1 at 21
patchr_config=design_patchr(3.43,1.6e-3,freq_config);
in every example and for validation it gives the same error unidentified function or method of input arguments... though i m trying my level best but can't solve thing problem
regards