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

removed remaining occurrences of changeGrid

parent 2ee768a4
......@@ -920,7 +920,7 @@ classdef (InferiorClasses = {?quantity.Symbolic}) Discrete ...
min(find(gridSelector, 1, 'last')+1, numel(gridSelector))]) = 1;
limitedGrid = obj(1).grid{1}(gridSelector);
objCopy = obj.copy();
objCopy = objCopy.changeGrid({limitedGrid}, gridName);
objCopy = objCopy.changeDomain(quantity.Domain(gridName, limitedGrid));
objInverseTemp = objCopy.invert(gridName);
else
objInverseTemp = obj.invert(gridName);
......@@ -1495,11 +1495,11 @@ classdef (InferiorClasses = {?quantity.Symbolic}) Discrete ...
for it = 1 : numel(obj)
newObj(it).valueDiscrete = obj(it).on(newDomain);
end
end % changeGrid()
end % changeDomain()
function newObj = replaceGrid(obj, myNewDomain, optArgs)
% CHANGEGRID change the grid of the quantity.
% REPALCEGRID change the grid of the quantity.
% newObj = REPLACEGRID(obj, MYNEWDOMAIN, "gridName", NEWGRIDNAME)
% replace the grid of the obj quantity. The order of grid and
% gridName in the obj properties remains unchanged, only the
......
......@@ -483,12 +483,7 @@ classdef PolynomialOperator < handle & matlab.mixin.Copyable
Phi = signals.PolynomialOperator(Phi);
Psi = signals.PolynomialOperator(Psi);
end
function newOperator = changeGrid(obj, gridNew, gridNameNew)
warning("DEPRICATED: Use subs instead")
newOperator = signals.PolynomialOperator(obj.M.changeGrid(gridNew, gridNameNew));
end
function newOperator = subs(obj, varargin)
newOperator = obj.M.subs(varargin{:});
......
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