MATLAB Answers

0

Time for a series of pictures

Asked by Mohammed Qahosh on 11 Jun 2019
Latest activity Commented on by Mohammed Qahosh on 12 Jun 2019
I have a series of pictures, each one is taken in a well know time period(exposure time). I am making a code such that I need to find the time for each picture.
example:
picture #1 was taken in a time interval of 0.25 sec.
picture #2 was taken in a time interval of 0.50 sec.
picture #3 was taken in a time interval of 0.25 sec.
I need to write a code contains the time at which each picture is taken. How could I do that.
We know that the time should be.
picture#1 time =0 sec (reference point)
picture#2 time=0+0.50
picture#3 time=0+0.50+0.25
That is I add the summ of the previous time to the time interval of the picture.( How to write that in a code)

  0 Comments

Sign in to comment.

1 Answer

Answer by Shunichi Kusano on 12 Jun 2019
 Accepted Answer

Hi, Mohammed. You need cumsum function.

  1 Comment

Shunichi Kusano Thank you very much. It works.

Sign in to comment.