function s = minus( lhs, rhs )
%MINUS Method to overload -.
%   Returns cell array listing non-equal fields of PrintJob objects.
%
%   See also EQ.

%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 1.1 $  $Date: 1998/04/17 15:57:33 $

if nargin ~= 2 | ~isa(lhs,'printjob') | ~isa(rhs,'printjob')
    error('Requires 2 PrintJob objects.')
end

lhs = struct(lhs);
rhs = struct(rhs);

n = fieldnames(lhs);
s = {};

for i = 1 : length(n)
    lhv = getfield( lhs, n{i} );
    rhv = getfield( rhs, n{i} );
    
    if ~isequal( lhv, rhv )
        %s = setfield( s, n{i}, rhv );
        s = [s {n{i}} ];
    end
end
