【matlab】sym()

来源:百度知道 编辑:UC知道 时间:2024/09/21 16:44:43
f=sym(3)和f=sym('3')有什么区别吗?

我从help中看到这段文字,好像是有区别的。
SYM Construct symbolic numbers, variables and objects.
S = SYM(A) constructs an object S, of class 'sym', from A.
If the input argument is a string, the result is a symbolic number
or variable. If the input argument is a numeric scalar or matrix,
the result is a symbolic representation of the given numeric values.

从这段文字判断一个结果是给定数值的符号表示。

而一个结果是一个象征性的数字或变量。

你说有区别吗?

没有区别。