[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Plot
From: |
Juan Pablo Carbajal |
Subject: |
Re: Plot |
Date: |
Fri, 31 Mar 2017 03:21:09 +0200 |
On Fri, Mar 31, 2017 at 2:30 AM, Thomas D. Dean <address@hidden> wrote:
> T=[]; B=[];
> for day=1:29
> t1=day+(10+([1:1400]/60/60))/24;
> t2=day+(16+([1:1520]/60/60))/24;
> bmp1=(1+rand(size(t1)))*10+80;
> bmp2=(1+rand(size(t2)))*10+83;
> T=[T;t1';t2'];
> B=[B;bmp1';bmp2'];
> endfor;
> ## if I plot time vs bmp, I get all the bmp values in one vertical
> ## line with a line connecting to the next set of bmp values.
> plot(T,B);
> ## plot with points demonstrates this:
> plot(T,B,'.');
> ## I want the plot to look something like this:
> plot(B);
I am not sure what you need, but
t1 has length 1400, t2 has length 1520; bmp1 and bmop2 has those
lengths respectively with values between 90 and 100, and 93 and 103.
Repeated 29 times. So:
n1 = 1400;
n2 = 1520;
B = (1+rand (29*(n1+n2),1))*10 + repmat ([80*ones(n1,1); 83*ones(n2,1)],29,1);
# now I create a linear timestamp
T = (1:29*(n1+n2)).';
plot (T,B)
is this what you want?
- Re: Hash function doesn't work, (continued)
- Re: Hash function doesn't work, Thomas D. Dean, 2017/03/30
- Re: Hash function doesn't work, evansste, 2017/03/30
- Re: Hash function doesn't work, Thomas D. Dean, 2017/03/30
- Re: Hash function doesn't work, Mike Miller, 2017/03/30
- RE: Hash function doesn't work, Allen.Windhorn, 2017/03/31
- Re: Hash function doesn't work, Thomas D. Dean, 2017/03/30
- Re: Hash function doesn't work, Tatsuro MATSUOKA, 2017/03/30
- Re: Hash function doesn't work, evansste, 2017/03/30
- Re: Hash function doesn't work, Tatsuro MATSUOKA, 2017/03/30
- Plot, Thomas D. Dean, 2017/03/30
- Re: Plot,
Juan Pablo Carbajal <=
- Re: Plot, Thomas D. Dean, 2017/03/30
- Re: Plot, Kire Pudsje, 2017/03/31
- Re: Plot, Juan Pablo Carbajal, 2017/03/31
- Re: Plot, Thomas D. Dean, 2017/03/31
- Re: Plot, Thomas D. Dean, 2017/03/31
Re: Hash function doesn't work, Francesco Potortì, 2017/03/31
RE: Hash function doesn't work, Allen.Windhorn, 2017/03/30