Thread Subject: Combine data sets in a plot

Subject: Combine data sets in a plot

From: Michael Grosswald

Date: 28 Oct, 2009 23:40:17

Message: 1 of 2

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?

Subject: Combine data sets in a plot

From: ade77

Date: 4 Nov, 2009 00:52:04

Message: 2 of 2

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?

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com