how to find real&imagenery part of complecs symbolic expression ?
조회 수: 1 (최근 30일)
이전 댓글 표시
lets say i want to get real &imegenry part of symbolic complex expression . so I wrote this simple code :
clc;clear all;
syms a b
H=a*i+b
real_H=real(H)
how ever the answer is not correct ,is there and other way ?
댓글 수: 0
채택된 답변
KALYAN ACHARJYA
2019년 6월 5일
편집: KALYAN ACHARJYA
2019년 6월 5일
syms a b real
%.........^
H=a*i+b;
real_H=real(H)
imag_H=imag(H)
Output:
real_H =
b
imag_H =
a
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!