DATE: 2019-5-31
1、string转换成sym类型
f = sym(f);
2、sym类型转换成string
string = char(F);
3、string转换成函数句柄
b=str2func(expression);
fh = str2func('sin')
fh =
@sin
4、函数句柄转换成string
fhandle = @sin;
func2str(fhandle)
ans =
sin
5、string转换成数值类型
str2num - Convert string to number
This MATLAB function converts the string str, which is an ASCII character
representation of a numeric value, to numeric representation.
x = str2num('st