Selaa lähdekoodia

Fix forcenum.

publish
Mickey Derks 8 vuotta sitten
vanhempi
commit
fbb0e7f597
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      OOequipment/Equipment.m

+ 1
- 1
OOequipment/Equipment.m Näytä tiedosto

@@ -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;


Loading…
Peruuta
Tallenna