Note that there are some explanatory texts on larger screens.

plurals
  1. POmatlab updating time vector
    primarykey
    data
    text
    <p>I have 19 cells (19x1) with temperature data for an entire year where the first 18 cells represent 20 days (each) and the last cell represents 5 days, hence (18*20)+5 = 365days. </p> <p>In each cell there should be 7200 measurements (apart from cell 19) where each measurement is taken every 4 minutes thus 360 measurements per day (360*20 = 7200).</p> <p>The time vector for the measurements is only expressed as day number i.e. 1,2,3...and so on (thus no decimal day), which is therefore displayed as 360 x 1's... and so on.</p> <p>As the sensor failed during some days, some of the cells contain less than 7200 measurements, where one in particular only contains 858 rows, which looks similar to the following example: </p> <pre><code>a=rand(858,3); a(1:281,1)=1; a(281:327,1)=2; a(327:328,1)=5; a(329:330,1)=9; a(331:498,1)=19; a(499:858,1)=20; </code></pre> <p>Where column 1 = day, column 2 and 3 are the data.</p> <p>By knowing that each day number should be repeated 360 times is there a method for including an additional amount of every value from 1:20 in order to make up the 360. For example, the first column requires 79 x 1's, 46 x 2's, 360 x 3's... and so on; where the final array should therefore have 7200 values in order from 1 to 20. </p> <p>If this is possible, in the rows where these values have been added, the second and third column should changed to nan. </p> <p>I realise that this is an unusual question, and that it is difficult to understand what is asked, but I hope I have been clear in expressing what i'm attempting to acheive. Any advice would be much appreciated. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload