필터 지우기
필터 지우기

Declaring a symbolic array real

조회 수: 1 (최근 30일)
Kevin Bachovchin
Kevin Bachovchin 2014년 2월 20일
편집: Walter Roberson 2014년 2월 20일
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

채택된 답변

Walter Roberson
Walter Roberson 2014년 2월 20일
편집: Walter Roberson 2014년 2월 20일
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개)

카테고리

Help CenterFile Exchange에서 Symbolic Variables, Expressions, Functions, and Preferences에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by