Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: Several Plots

Subject: Several Plots

From: marwa

Date: 28 Apr, 2008 08:55:21

Message: 1 of 5

Please I need your help,
I would like to have several data signals like about 20 signals to be drawn in one plot and after that I can modify any of them,
thanks

Subject: Several Plots

From: Élodie

Date: 28 Apr, 2008 10:37:15

Message: 2 of 5

% Plot the 20 signals on the same plot :
figure(1)
hold on,
h1=plot(x,y1);
h2=plot(x,y2);
h3=plot(x,y3);
...
h20=plot(x,y20);

% And then, modify them as you like :
set(h1,'Properties','Values')

% In order to know the name of the 'Properties', use the command:
get(h1)

% For example, in order to modify the line with
set(h1,'Linewidth',3)


I hope it helps...


"marwa" <manooshe86@yahoo.com> a écrit dans le message de news:
17350901.1209372952398.JavaMail.jakarta@nitrogen.mathforum.org...
> Please I need your help,
> I would like to have several data signals like about 20 signals to be
> drawn in one plot and after that I can modify any of them,
> thanks


Subject: Several Plots

From: Shaun

Date: 28 Apr, 2008 12:16:02

Message: 3 of 5

% Dependent Variable
x = (1:10)';
% Signal Data (Columns)
y = rand(10,20)
% Appropriately Sized Dependent Variable
x = repmat(x,1,size(x,2));
% Plot
h = plot(x,y);

%Change stuff
set(h(3),'LineWidth',3)
set(h(8),'LineStyle',':')

Subject: Several Plots

From: Shaun

Date: 28 Apr, 2008 12:28:02

Message: 4 of 5

Sorry

% Dependent Variable
x = (1:10)';
% Signal Data (Columns)
y = rand(10,20);
% Plot
h = plot(x,y);

%Change stuff
set(h(3),'LineWidth',3)
set(h(8),'LineStyle',':')

Subject: Several Plots

From: alessandro mura

Date: 29 Apr, 2008 08:04:58

Message: 5 of 5

Also, try "help subplot"

--
Alessandro Mura
Istituto Nazionale di Astrofisica - IFSI
http://pptt4.ifsi-roma.inaf.it/~mura/index.html
http://www.alessandromura.it


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

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics