From fbb0e7f5973b878b742ebcca31bb9b350f7ad601 Mon Sep 17 00:00:00 2001 From: Mickey Derks Date: Fri, 17 Nov 2017 16:12:58 +0100 Subject: [PATCH] Fix forcenum. --- OOequipment/Equipment.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OOequipment/Equipment.m b/OOequipment/Equipment.m index 0f747f2..93b7425 100644 --- a/OOequipment/Equipment.m +++ b/OOequipment/Equipment.m @@ -214,7 +214,7 @@ classdef Equipment < handle function num = forceNum(input) %FORCENUM Throws an error if the input is not numeric. - if ~isnumeric(input) + if ~isnum(input) error('Input should be a (single) number.'); end num = input;