java - Using org.apache in Matlab -


i trying use org.apache matlab doing this:

javaaddpath('~/.m2/repository/org/apache/commons/commons-math3/3.2/commons-math3-3.2.jar'); import org.apache.commons.math3.stat.correlation.*  c = org.apache.commons.math3.stat.correlation.kendallscorrelation(); 

i following error:

undefined variable "org" or class "org.apache.commons.math3.stat.correlation.kendallscorrelation" 

how fix it?

kendallscorrelation class present in math version 3.3 , trying use version 3.2. following code works:

javaaddpath('~/matlab/jars/commons-math3-3.3/commons-math3-3.3.jar'); import org.apache.commons.math3.stat.correlation.* c = org.apache.commons.math3.stat.correlation.kendallscorrelation(); c.correlation([4 2 0], [3 2 1]) 

Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -