Declaring a symbolic array real
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Kevin Bachovchin
le 20 Fév 2014
Modifié(e) : Walter Roberson
le 20 Fév 2014
Hello,
Hello I'm trying to create a symbolic array and ensure that it is real. When I use the code:
List = {'x','y'}
A = sym(List,'real')
the array A is not real and A' yields unwanted conjugates. Why doesn't this code ensure that A is real, and how can I fix it?
Thank you, Kevin
0 commentaires
Réponse acceptée
Walter Roberson
le 20 Fév 2014
Modifié(e) : Walter Roberson
le 20 Fév 2014
Using a cell array as the first argument to sym() is not a documented usage for any functionality of sym()
You can
sym('literalvariable', 'real')
and you can
sym(ExistingSymbolicArray, 'real')
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Symbolic Variables, Expressions, Functions, and Preferences 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!