I'm not sure why but after I downloaded and moved the files to my MATLAB directory, many of the function names are capitalized such as "INIT.M", so when trying to run the toolbox MatLab cannot find the files. Also when I run functions such as place_element, there are errors (in this case it appears line 119).
Hopefully you got my e-mail reply and everything is working now.
For general information, the most likely cause of this error is that not all the ArrayCalc sub directories have been added to the Matlab search path.
I hope this helps,
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
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
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 :
Thank you for your comments.
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.