필터 지우기
필터 지우기

Conjugate of an Array Consisting of Symbolic Scalars

조회 수: 1 (최근 30일)
Ali Baig
Ali Baig 2018년 3월 16일
댓글: Ali Baig 2018년 3월 16일
Let's assume that there is an array 8x1 array of symbolic scalars, which can be defined using
h = sym('h',[8 1]);
When I take its conjugate using the command
disp(h')
The output MATLAB shows is
[ conj(h1), conj(h2), conj(h3), conj(h4), conj(h5), conj(h6), conj(h7), conj(h8)]
Since I know that all the entries in the symbolic array are scalars, and therefore, conj(h1) should be equal to h1. How can I ensure this assumption in MATLAB?
Thank you.

채택된 답변

Birdman
Birdman 2018년 3월 16일
h = sym('h',[8 1]);
assume(h,'real');
disp(h')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Conversion Between Symbolic and Numeric에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by