Commit 057a7cc0 authored by Ferdinand Fischer's avatar Ferdinand Fischer
Browse files

fixed unittest of testSymbolic...

parent b21188b8
......@@ -661,17 +661,17 @@ classdef Symbolic < quantity.Function
end
% remove the not required parameters:
if isfield('variable', k)
parameters = rmfield(parameters, k);
if isfield(parameters, 'variable')
parameters = rmfield(parameters, 'variable');
end
% set new parameter values:
parameters.domain = gridJoin(a(1).domain, b(1).domain);
parameters.name = a(1).name + "+" + b(1).name;
parameters = misc.struct2namevaluepair(parameters);
C = quantity.Symbolic(a.sym() + b.sym(), parameters{:});
C = quantity.Symbolic(a.sym() + b.sym(), gridJoin(a(1).domain, b(1).domain), ...
parameters{:});
end % plus()
function absQuantity = abs(obj)
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment