check a variable is a symbolic or a double

23 次查看(过去 30 天)
is there a function to check a variable is a symbolic or a double?

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2012-10-14
编辑:Azzi Abdelmalek 2012-10-14
syms a
b=10
class(a)
class(b)

更多回答(1 个)

Walter Roberson
Walter Roberson 2012-10-15
Use isnumeric() or isa()

类别

Help CenterFile Exchange 中查找有关 Symbolic Variables, Expressions, Functions, and Settings 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by