659
edits
Carandraug (talk | contribs) m (→How to make Java classes available to Octave?: fixing quotes) |
Carandraug (talk | contribs) m (→How to create an instance of a Java class?: fixing quotes) |
||
Line 60: | Line 60: | ||
if (is_octave) | if (is_octave) | ||
Passenger = java_new( | Passenger = java_new ('package.FirstClass', row, seat); % works only in Octave | ||
else | else | ||
Passenger = javaObject( | Passenger = javaObject ('package.FirstClass', row, seat); % actually works in both Octave and matlab | ||
end | end | ||