How to plot both real and imaginary part of complex exponential?

조회 수: 6 (최근 30일)
Duy Dang
Duy Dang 2020년 10월 27일
답변: Star Strider 2020년 10월 27일
Hi,
I dont know how to plot this, since there is imaginary unit in the function, please help
x(t) = t^2 + j2πt, 0 ≤ t ≤ 10 , plot the approximate signals using 5 terms of the complex exponential form. This is what is got. Not sure if it right?
clc;
clear all;
close all;
t0 = 0;
T = 10;
w = 2*pi/T
syms t
x = t^2 +(j*2*pi*t)
k = -2:2 %5 terms
a = (1/T)*int(x*exp(-1j*k*w*t),t,t0,t0+T); %%complex exponential
  댓글 수: 3
Duy Dang
Duy Dang 2020년 10월 27일
편집: Duy Dang 2020년 10월 27일
k is the 5 terms that the question asked.I know use real, img in this problem but I dont know how to proper use it because I always get error. like how to set it up

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

답변 (1개)

Star Strider
Star Strider 2020년 10월 27일
See my Answer to your duplicate Question: How to plot both real and imaginary part of complex exponential?

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by