|
|
@@ -214,7 +214,7 @@ classdef Equipment < handle |
|
|
|
|
|
|
|
|
function num = forceNum(input) |
|
|
function num = forceNum(input) |
|
|
%FORCENUM Throws an error if the input is not numeric. |
|
|
%FORCENUM Throws an error if the input is not numeric. |
|
|
if ~isnumeric(input) |
|
|
|
|
|
|
|
|
if ~isnum(input) |
|
|
error('Input should be a (single) number.'); |
|
|
error('Input should be a (single) number.'); |
|
|
end |
|
|
end |
|
|
num = input; |
|
|
num = input; |
|
|
|