Path: news.mathworks.com!not-for-mail
From: "ade77 " <ade100a@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Combine data sets in a plot
Date: Wed, 4 Nov 2009 00:52:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 8
Message-ID: <hcqj7k$cgr$1@fred.mathworks.com>
References: <hcakp1$ngj$1@fred.mathworks.com>
Reply-To: "ade77 " <ade100a@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257295924 12827 172.30.248.37 (4 Nov 2009 00:52:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 4 Nov 2009 00:52:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1059495
Xref: news.mathworks.com comp.soft-sys.matlab:582216


You can use A_combine = cell2mat(A); %that should give you all your vector ;
imag_part = imag(A_combine);
real_part = real(A_combine);

then you can plot imag_part vs real_part using any of the plot function you desire

"Michael Grosswald" <michaelgrosswald@yahoo.co.uk> wrote in message <hcakp1$ngj$1@fred.mathworks.com>...
> I have A{k} where each A{k_i} is a column vector (set of complex eigenvalues). How can I combine each A{k_i} into one large vector and then scatter plot the imaginary parts of each value versus the real parts?