How do I get the time and the corresponding value out of a Timeseries?

7 visualizzazioni (ultimi 30 giorni)
I calculated the Energy. Its a function over time. Now, I want to know the time at one point or by crossing a value. How can I do it? The function is bijective. And when I save to the workspace it is a time series.
  2 Commenti
Dominik Leifer
Dominik Leifer il 15 Apr 2016
Thanks, I got it. I saved my Data as Datavector F to workspace and created a Timevector t. Then I used the find() function in matlab. e.g.
idx = find(F==10,1) % find first value in F with the value of 10
t_10 = t(idx) % time when 10 is found

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Time Series Collections in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by