check a variable is a symbolic or a double

29 次查看(过去 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()

标签

Community Treasure Hunt

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

Start Hunting!

Translated by