Using a java class from within Matlab
Show older comments
Hi all,
I am programming some metadata tools for NOAA's (National Oceanic and Atmospheric Administration's) hourly surface database, and I'm having trouble getting a java class they supplied to work within matlab.
I have no java experience at all and have never used Matlab apart from in this project, though I have been using it daily now for two months or so.
The java class comes as just a .class file (ish-Java.class), and it is used to turn the raw NOAA data files into a space-delimited text file. I can use it fine from windows command line when the .class and raw data are in the same directory. I cd to the directory in question and input simply:
java.ishJava (input filename) (output filename.txt)
Minus the parenthesis of course. My question is how can I do this from within Matlab? My code downloads necessary raw files over ftp, but I want to automate the conversion. I have tried adding the folder ishJava is in to the static java classpath, and Matlab recognizes ishJava, but I have no idea how to execute these methods from within Matlab. Any help would be appreciated.
~Nate
Answers (1)
Friedrich
on 20 Jul 2011
0 votes
Hi,
I would suggest starting here:
You can find examples there too.
Categories
Find more on Deploy to Java Applications Using MWArray Data API in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!