how to invoke java program from matlab
Ältere Kommentare anzeigen
I have to run following code in java and invoke this class in matlab. Classpath is set as recommended.
class HelloWorld
{
public String Hello()
{
String helloWorld="Hello World!";
return helloWorld;
}
}
Now, as per guided i try to create instance obj in Matlab, with following command:
o = HelloWorld;
Here I get following err:
No constructor 'HelloWorld' with matching signature found.
The next command indicated it this:
output = o.hello;
which wouldnt work unless instance is created. Plz help how to fix this instance creation.
Antworten (1)
Neha
am 23 Mai 2011
Kategorien
Mehr zu Programming finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!