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

unittests are now also working for Operator and BasicVariable

parent e4e28691
......@@ -98,8 +98,8 @@ classdef (InferiorClasses = {?quantity.Symbolic}) Discrete < handle & matlab.mi
% the case if all values are empty. This is required for
% the initialization of quantity.Function and
% quantity.Symbolic objects
assert( numGridElements(myDomain) == numel(valueOriginal{1}) || ...
misc.alln( cellfun(@isempty, valueOriginal ) ), ...
assert( misc.alln( cellfun(@isempty, valueOriginal ) ) || ...
numGridElements(myDomain) == numel(valueOriginal{1}), ...
'grids do not fit to valueOriginal');
% allow initialization of empty objects
......
......@@ -27,7 +27,7 @@ A = cat(3, [ 0, 0, 0, 0; ...
B = cat(3, [1, 0, 0, 0]', zeros(4, 1), zeros(4, 1));
for k = 1:3
a{k} = quantity.Symbolic(A(:,:,k), 'grid', Z, 'variable', z);
a{k} = quantity.Symbolic(A(:,:,k), 'grid', Z, 'gridName', 'z');
end
A = quantity.Operator(a, 's', s);
......@@ -49,7 +49,7 @@ function testFundamentalMatrixSpaceDependent(testCase)
z = sym('z', 'real');
Z = linspace(0, 1, 32)';
A = quantity.Operator(...
{quantity.Symbolic([1, z; 0, a], 'variable', 'z', 'grid', Z)});
{quantity.Symbolic([1, z; 0, a], 'gridName', 'z', 'grid', Z)});
F = A.stateTransitionMatrix();
......
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