Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Plotting complex numbers
Date: Thu, 19 Apr 2012 00:50:39 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 10
Message-ID: <jmnngv$mol$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1334796639 23317 172.30.248.48 (19 Apr 2012 00:50:39 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 19 Apr 2012 00:50:39 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3443395
Xref: news.mathworks.com comp.soft-sys.matlab:765079

Hi guys, I want to plot the following expression of 'Z' with respect to 't':

t = linspace(0,10,1000);

Z = 1/55 - ((3 - 1i*sqrt(11))/330)*exp(-0.5*(11 - 3*1i*sqrt(11))*t) - ((3 + 1i*sqrt(11))/330)*exp(-0.5*(11 + 3*1i*sqrt(11))*t)+(4/55)*heaviside(t-1) - ((2*(3 - 1i*sqrt(11)))/165)*exp(0.5*(11 - 3*1i*sqrt(11))*(1-t))*heaviside(t-1) - ((2*(3 + 1i*sqrt(11)))/165)*exp(0.5*(11 + 3*1i*sqrt(11))*(1-t))*heaviside(t-1) - (1/11)*heaviside(t-3) + ((3 - 1i*sqrt(11))/66)*exp(0.5*(11 - 3*1i*sqrt(11))*(3-t))*heaviside(t-3)
+ ((3 + 1i*sqrt(11))/66)*exp(0.5*(11 + 3*1i*sqrt(11))*(3-t))*heaviside(t-3);

plot(t,Z);

Thanks