Octave 4.2.1 은 javaaddpath가 가능하다.
>> javaaddpath('C:\Program Files\Ocean Optics\OmniDriver\OOI_HOME\OmniDriver.jar');
>> wrapper = com.oceanoptics.omnidriver.api.wrapper.Wrapper();
>> wrapper.openAllSpectrometers();
"error: 'com' undefined",
>> wrapper = javaObject ("com.oceanoptics.omnidriver.api.wrapper.Wrapper")
>> spectrum = wrapper.getSpectrum(0);
>> wavelengths = wrapper.getWavelengths(0);
>> plot(wavelengths, spectrum);
댓글 없음:
댓글 쓰기