Java package: Difference between revisions

6 bytes removed ,  30 November 2011
m
Line 60: Line 60:


  if (is_octave)
  if (is_octave)
   Passenger = java_new(’package.FirstClass’, row, seat);    % works only in Octave  
   Passenger = java_new ('package.FirstClass', row, seat);    % works only in Octave  
  else
  else
   Passenger = javaObject(’package.FirstClass’, row, seat);  % actually works in both Octave and matlab
   Passenger = javaObject ('package.FirstClass', row, seat);  % actually works in both Octave and matlab
  end
  end