help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Plot


From: Thomas D. Dean
Subject: Plot
Date: Thu, 30 Mar 2017 17:30:52 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

I have some 'treadmill' data, one heart rate reading per second for 20 minutes.

I can simulate this with:

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);

Is there a simple way to accomplish this?

Tom Dean



reply via email to

[Prev in Thread] Current Thread [Next in Thread]