queryMySQL
Platform independent MySQL database solution with blob support.
Author: Jonathan Karr
This fails for me.
Running Matlab R2012a, Win64.
When I run the "queryExample.m" code, it returns error:
>> queryExample
"Error: File: queryExample.m Line: 6 Column: 8
Arguments to IMPORT must either end with ".*"
or else specify a fully qualified class name:
"edu.stanford.covert.db.MySQLDatabase" fails this test."
If I run each of the command separately, e.g.
>> addpath(fullfile(pwd, 'src'))
>> javaaddpath('lib/mysql-connector-java-5.1.6/mysql-connector-java-5.1.6-bin.jar')
>> import edu.stanford.covert.db.MySQLDatabase
I do not get the error above. However, then the code fails on the subsequent step:
"
>> db = MySQLDatabase('covertlab.stanford.edu', 'test', 'test', 'test')
Warning: The following error was caught while executing
'edu.stanford.covert.db.MySQLDatabase' class destructor:
Attempt to reference field of non-structure array.
Error using edu.stanford.covert.db.MySQLDatabase/open (line 411)
Java exception occurred:
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link
failure
Last packet sent to the server was 0 ms ago.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
...
"
11 Jan 2011
distance.m
A fully vectorized function that computes the Euclidean distance matrix between two sets of vectors.
Author: R. Bunschoten