Skip to content

Commit aff609f

Browse files
Support vpa/symbolic for solution parsing
1 parent 34c9ec6 commit aff609f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/+otp/Problem.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,9 @@ function validateNewState(obj, newTimeSpan, newY0, newParameters)
246246
params = varargin(2:end);
247247
end
248248

249-
if ~(isvector(t) && isnumeric(t))
249+
if ~(isvector(t) && otp.utils.validation.isNumerical(t))
250250
error('The times must be a vector of numbers');
251-
elseif ~(ismatrix(y) && isnumeric(y))
251+
elseif ~(ismatrix(y) && otp.utils.validation.isNumerical(y))
252252
error('The solution must be matrix of numbers');
253253
end
254254

0 commit comments

Comments
 (0)