数値の自然対数を取得しようとすると、次のメッセージが表示されます。
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'