Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Plotting complex numbers
Date: Thu, 19 Apr 2012 06:43:22 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 17
Message-ID: <jmoc69$clv$1@newscl01ah.mathworks.com>
References: <jmnngv$mol$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-04-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1334817802 12991 172.30.248.35 (19 Apr 2012 06:43:22 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 19 Apr 2012 06:43:22 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:765100

"Sarah  Coleman" wrote in message <jmnngv$mol$1@newscl01ah.mathworks.com>...
> 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) .....
- - - - - - - - - -
  Use 'plot3' to display both the real and imaginary parts of Z along the x and y axes.

 Zr - real(Z);
 Zi = imag(Z);
 plot3(Zr,Zi,t)

Note: I believe you need a few ".*" in place of "*" in your expression for Z to make it a valid vector, as for example, at the end:

 ..... + 3*1i*sqrt(11))*(3-t)).*heaviside(t-3);

Roger Stafford