Info
This question is closed. Reopen it to edit or answer.
Calling Java from Matlab
1 view (last 30 days)
Show older comments
Calling Java from my Matlab script (Matlab R2014a).
I have the following:
--------------------------------------
dpath = 'D:\Users\spal\Documents\spal_matlab_folder\myOwnJarFile.jar';
javaaddpath(dpath);
import ('com.ourdomain.main.*');
[M,X,J] = inmem
timeseries = ... horiz = 4;
JA = javaMethod('dealWithNegatives','ForecastKthStep',forecast,horiz);
--------------------------------------
The error I have is that Matlab can't find the class "ForecastKthStep" which has the "public static" method named "dealWithNegatives" that takes 2 arguments "forecast" matrix and "horiz" for time horizon.
What am I doing wrong here?
Any tips would be much appreciated.
Cheers.
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!