diff --git a/interfaces/matlab/toolbox/@Reactor/Reactor.m b/interfaces/matlab/toolbox/@Reactor/Reactor.m index f550336c82..a5e528953b 100644 --- a/interfaces/matlab/toolbox/@Reactor/Reactor.m +++ b/interfaces/matlab/toolbox/@Reactor/Reactor.m @@ -15,8 +15,8 @@ % :mat:func:`IdealGasConstPressureReactor`, :mat:func:`ConstPressureReactor` % % :param contents: -% Instance of class :mat:func:`Solution` or :mat:func:`Mixture` -% representing the contents of the reactor +% Instance of class :mat:func:`Solution` representing the contents of the +% reactor % :param typ: % Integer, reactor type. Options are: % @@ -49,4 +49,6 @@ if isa(contents, 'Solution') insert(x, contents); +elseif ~(isa(contents, 'double') && contents == 0) + error('Reactor contents must be an object of type "Solution"') end