我正在尝试一个数字的自然对数,我收到消息:
tf2 = 60*ln(B1);
Undefined function 'ln' for input arguments of type 'double'.
所以我尝试将数字转换为文档声称它将接受的浮点数,但随后我收到错误消息:
float(B1);
Error using float (line 50)
The input argument to float was not a supported type. The only recognized strings are 'single' and 'double'. The input type was 'double'
所以然后我尝试将双打作为单打并得到相同的错误,但它说:
f=single(B1);
float(B1);
Error using float (line 50)
The input argument to float was not a supported type. The only recognized strings are 'single' and 'double'. The input type was 'single'