瀏覽代碼

Fix forcenum.

publish
Mickey Derks 8 年之前
父節點
當前提交
fbb0e7f597
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      OOequipment/Equipment.m

+ 1
- 1
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;


Loading…
取消
儲存