Does matlab have data type of sym?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I set a as symbolic. Then I check if a is a char and I get a false. If later I ask the class of a then its char. Suppose I make the check if a is symbolic then I get true. Since the outcome of class is char I would expect that the check for char would also be true. Please see the example below.
>> clear
>> syms a
>> isa(a,'char')
ans =
0
>> class a
ans =
char
I would appreciate if you explain me what's going on. Thank you.
0 commentaires
Réponse acceptée
Azzi Abdelmalek
le 4 Fév 2013
Modifié(e) : Azzi Abdelmalek
le 4 Fév 2013
clear
syms a
class(a)
The class of a is sym, not char
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Conversion Between Symbolic and Numeric dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!