フィルターのクリア

How to obtain a value from timestamp

3 ビュー (過去 30 日間)
Matthew Clark
Matthew Clark 2019 年 3 月 13 日
コメント済み: Walter Roberson 2019 年 3 月 16 日
Hello everyone,
Is there any method, or way how to obtain a value for example same hour previous day ? Thanks a lot
  11 件のコメント
dpb
dpb 2019 年 3 月 13 日
編集済み: dpb 2019 年 3 月 14 日
BTW NB: load is a builtin (and pretty important) Matlab function to read .mat files. Aliasing it with a variable name, while quite an appropriate name for the application, is probably not a good idea. Since ML is case-sensitive, Load or some other variation would be a likely candidate.
Digression aside, adding a duration to an energy value is then inconsistent in units and simply wrong as I presumed.
It's not clear exactly what you think that should do, but as noted, you either compute the relative position of a value in an array by knowing the offset from present position as Walter shows, or you use the actual time values and look for matching timestamps of that which you wish and then use those indices to retrieve the data.
Again, we're lacking context for how you've got the data stored so is very difficult to write any specific code and talking in generalities is fraught with confusion and imprecision when it comes to writing code.
There is a timetable class in Matlab; you might find it an appropriate container for your purposes. See
doc timetable % for details, examples, etc., ...
Walter Roberson
Walter Roberson 2019 年 3 月 13 日
For any given location, K, in your load data, associated with a particular time, the location (K-144) is the data for the time exactly one day earlier.

サインインしてコメントする。

回答 (1 件)

Matthew Clark
Matthew Clark 2019 年 3 月 14 日
so if I want to get prev24h value I have to use for loop to loop throughout the array and array at indek i-144 will be my previous value ?
  7 件のコメント
Matthew Clark
Matthew Clark 2019 年 3 月 15 日
編集済み: Matthew Clark 2019 年 3 月 15 日
Mr. Walter Roberson what is the difference between narxnet and distdelaynet ? Could I for example closed loop for my problem ? Thanks for your pattience and advice!
Walter Roberson
Walter Roberson 2019 年 3 月 16 日
Sorry, I am not really familiar with the time based networks.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by