Add the function detect_open
authorLukáš Jiřiště <jiriste@icpf.cas.cz>
Tue, 7 May 2024 14:00:30 +0000 (16:00 +0200)
committerLukáš Jiřiště <jiriste@icpf.cas.cz>
Tue, 7 May 2024 14:00:30 +0000 (16:00 +0200)
commit2265028b7f616f54bbcc51365481f33a40c30b82
treea7ea9a1a96562687ce188c91bc4e1986e1c2e46e
parent71a8ad28f9aceba75b1c251eb6a36eeecc0ede54
Add the function detect_open

This function returns an array of logicals, where the value is true only
at the index, which corresponds with the time the valve only just opened.
It should work like this:
  t(detect_open(t, p)) = t_when_valve_opened
detect_open.m [new file with mode: 0644]