Info

This question is closed. Reopen it to edit or answer.

Calling Java from Matlab

1 view (last 30 days)
Sione
Sione on 14 Aug 2014
Closed: MATLAB Answer Bot on 20 Aug 2021
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.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!