Commit d1864249 authored by Ferdinand Fischer's avatar Ferdinand Fischer
Browse files

Now the bugfix to quantity.Discrete/changeGrid is really included!

parent 8bfba343
......@@ -1352,7 +1352,7 @@ classdef (InferiorClasses = {?quantity.Symbolic}) Discrete ...
gridNameNew = misc.ensureString(gridNameNew);
gridNew = misc.ensureIsCell(gridNew);
end
if obj(1).isConstant
newDomain(1:length( gridNew )) = quantity.Domain();
for it = 1 : length(gridNew)
......@@ -1361,7 +1361,11 @@ classdef (InferiorClasses = {?quantity.Symbolic}) Discrete ...
end
else
gridIndexNew = obj(1).domain.gridIndex(gridNameNew);
newDomain = obj(1).domain;
% initialization of the newDomain array as quantity.Domain
% array. This is required in order to handle also
% quantity.EquidistantDomains:
newDomain(1:obj(1).nargin) = quantity.Domain();
newDomain(:) = obj(1).domain;
for it = 1 : length(gridIndexNew)
newDomain(gridIndexNew(it)) = ...
......
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