Simulation of monochromatic light propagation in optical systems by combination of ray-tracing with a vectorial diffraction integral (See: B. Andreas, G. Mana, and C. Palmisano, "Vectorial ray-based diffraction integral," J. Opt. Soc. Am. A 32, 1403-1424 (2015)).
Birk Andreas (2021). Vectorial ray-based diffraction integral (VRBDI) (https://www.mathworks.com/matlabcentral/fileexchange/52210-vectorial-ray-based-diffraction-integral-vrbdi), MATLAB Central File Exchange. Retrieved .
@ Manish Kumar:
The problem is related to the use of the ParforProgMon.m. It uses the included Java code in the directory \java which shoud be a subdirectory of the directory of the caller. The addpath command enables it to find the Java code. I don't have this error. Can you check whether \java and its contents are present where they should be?
When trying to run one of the examples (#3 in my case) I get an error:
"Error using javaaddpath (line 48)
Too many input arguments."
Although I am looking into solving the error, I am posting it so that even author/others could look into it.
Other lines in error read as follows:
Error using javaaddpath (line 48)
Too many input arguments.
Error in pctRunOnAll (line 47)
Error in VRBDIsw (line 156)
eval(['pctRunOnAll javaaddpath ' folder '\java']);
Error in Example3 (line 66)
[E2x,E2y,E2z,H2x,H2y,H2z,I2,Xg,Yg,Zg,N2]=VRBDIsw(P,E,[0 0 1],System,...
Inspired by: PARFOR Progress Monitor v2
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!