check a variable is a symbolic or a double

35 views (last 30 days)
is there a function to check a variable is a symbolic or a double?

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 14 Oct 2012
Edited: Azzi Abdelmalek on 14 Oct 2012
syms a
b=10
class(a)
class(b)

More Answers (1)

Walter Roberson
Walter Roberson on 15 Oct 2012
Use isnumeric() or isa()

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!