I have a problem with calling Java from matlab, I'm using version 6
of matlab which is running version 1.1.8 of java. I wrote a simple
class to use in a program of mine, just once class, not part of a
package or anything, and I add the directory of where it is into
classpath.txt, then restart matlab. However, I can still not create
an instance of the class, even when I try and create it two different
??? Undefined function or variable 'PauseClass'.
??? Error using ==> javaObject
No class PauseClass can be located on Java class path.
I'm at a loss as to why this isn't being found on the classpath. For
reference here is my class (the timer in matlab is too inaccurate, so
I had to write my own). It compiles fine and I've tested it:
class PauseClass extends Thread
public PauseClass(int secs)
sleep(secs * 1000);
does anyone know what's going on or how to correct it? Any help would
be appreciated. Thanks.