Declaring a symbolic array real

1 Ansicht (letzte 30 Tage)
Kevin Bachovchin
Kevin Bachovchin am 20 Feb. 2014
Bearbeitet: Walter Roberson am 20 Feb. 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

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 20 Feb. 2014
Bearbeitet: Walter Roberson am 20 Feb. 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')

Weitere Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by