I am currently using this package (https://www.mathworks.com/matlabcentral/fileexchange/52210-vectorial-ray-based-diffraction-integral-vrbdi?s_tid=prof_contriblnk) which I unziped and is my current directory in matlab. I added a path to the java file with the addpath command, but am still getting the same errors as the other person who commented on the orginal posting. Below is a screenshot as well as the error messages, if you anyone has a suggestion please let me know. Thanks in advance.
Error using javaaddpath (line 48)
Too many input arguments.
Error in pctRunOnAll (line 50)
evalin('base', command);
Error in VRBDIpw (line 175)
eval(['pctRunOnAll javaaddpath ' folder '/java']);
Error in Example1 (line 90)
[E2x,E2y,E2z,H2x,H2y,H2z,I2,Xg,Yg,Zg,N2]=VRBDIpw(K,E,System,...

댓글 수: 1

Berk Özkarali
Berk Özkarali 2021년 11월 18일
Hi, probably you have found a solution to your problem. I have just replaced
eval(['pctRunOnAll javaaddpath ' folder '/java']);
with
eval(['pctRunOnAll javaaddpath(pwd)' ]);
for both VRDI and VDI and copy paste all the files inside java folder to current project directory.It seems like working for me.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Call Java from MATLAB에 대해 자세히 알아보기

질문:

2020년 5월 27일

댓글:

2021년 11월 18일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by