Complex number math problems

조회 수: 24 (최근 30일)
Dalton Houghton-Schaffer
Dalton Houghton-Schaffer 2019년 9월 4일
댓글: Bruno Luong 2019년 9월 4일
I am new to MATLAB and could really use help writing code to convert these
Given the following complex numbers:
Z1 = 3.5 + j 5.5
Z2 = 3.71 angle( pi / 4 )
Z3 = 0.125 angle( -5*pi / 2 )
Z4 = 9 exp( - j * 45 degrees )
Find the following:
  • Addition
  • Subtraction
  • Division
  • Conjugates
  댓글 수: 2
Walter Roberson
Walter Roberson 2019년 9월 4일
Addition and subtraction and division between what and what?
Dalton Houghton-Schaffer
Dalton Houghton-Schaffer 2019년 9월 4일
The functions of Z

댓글을 달려면 로그인하십시오.

채택된 답변

Nicolas B.
Nicolas B. 2019년 9월 4일
Complex numbers work literally like all other numbers in MATLAB. The only interesting things are how you create them:
z1 = 1 + 3i; % first solution
z2 = 2 + 4j; % second solution (for engineers)
z3 = 3 * exp(pi/2*i); % solution amplitude and angle
Once you have complex numbers, you can multiply, add... with double-type data without any problem. If you want to extract the real or complex part, just real() or imag() functions.
  댓글 수: 2
Dalton Houghton-Schaffer
Dalton Houghton-Schaffer 2019년 9월 4일
Thank you so much! How can I do a conjugate in MATLAB?
Bruno Luong
Bruno Luong 2019년 9월 4일
conj(z)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by