Commit 67d71a62 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed bug (isscalar does not assume that the input is numeric).

parent e615f00b
......@@ -40,7 +40,7 @@ function A = plus(B,C) % --*-- Unitary tests --*--
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if isscalar(B)
if isnumeric(B) && isscalar(B)
if ~isdseries(C)
error('dseries::plus: Second input argument must be a dseries object!')
end
......@@ -57,7 +57,7 @@ if isscalar(B)
return;
end
if isscalar(C)
if isnumeric(C) && isscalar(C)
if ~isdseries(B)
error('dseries::plus: First input argument must be a dseries object!')
end
......
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