Using a java class from within Matlab
古いコメントを表示
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
回答 (1 件)
Friedrich
2011 年 7 月 20 日
0 投票
Hi,
I would suggest starting here:
You can find examples there too.
カテゴリ
ヘルプ センター および File Exchange で Deploy to Java Applications Using MWArray Data API についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!