Community Profile

photo

Sione


Parrot Analytics

Active since 2014

Followers: 0   Following: 0

Message

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.

Statistics

Feeds

View by

Question


Calling Java from Matlab
Calling Java from my Matlab script (Matlab R2014a). I have the following: -------------------------------------- dpath...

9 years ago | 0 answers | 0

0

answers