Finding length between two array elements.

11 ビュー (過去 30 日間)
Hrishikesh Dalal
Hrishikesh Dalal 2019 年 12 月 3 日
回答済み: the cyclist 2019 年 12 月 3 日
i have an array consisting of 1's and 0's. 1-> generators on and 0's-> generators off. I need to find lengths for which the generators remain off. the array is 44*8760 values. Attaching the file as worspace.
  5 件のコメント
Hrishikesh Dalal
Hrishikesh Dalal 2019 年 12 月 3 日
Thanks for the reply David i will work it out
David Goodmanson
David Goodmanson 2019 年 12 月 3 日
Hrishikesh,
I posted the wrong expression for z in the comment but it is fixed now.

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

回答 (1 件)

the cyclist
the cyclist 2019 年 12 月 3 日
The RunLength utility from the File Exchange might be handy. Run it in a loop over each column.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by