Dear All,
I want to plot ROTI. Would you please help me? The ROTI is defined as the standard deviation of ROT, given by (<ROT^2> - <ROT>^2)^1/2 for each 5-min interval.

 採用された回答

KSSV
KSSV 2022 年 6 月 5 日

0 投票

x = rand(100,1) ;
y = sqrt(mean(x.^2)-mean(x)^2)
y = 0.2657

4 件のコメント

KSSV
KSSV 2022 年 6 月 5 日
@Ara comment moved here:
Thank you for you reply.
How to calculate standard deviation for each 5 min interval?
y=std(sqrt(mean(x.^2)-mean(x)^2));
Is that correct
KSSV
KSSV 2022 年 6 月 5 日
You see, (sqrt(mean(x.^2)-mean(x)^2) is a single number, you cannot find stanard deviation. May be you need to find this number for every five minutes ata and then get Std of that array.
Ara
Ara 2022 年 6 月 5 日
編集済み: Ara 2022 年 6 月 6 日
I think you are right. I have a column of time. How to write for every 5 min data and then get the std?
Stephen Tete
Stephen Tete 2022 年 11 月 14 日
Kindly check the code again that is not how to calculate ROI

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCommunications Toolbox についてさらに検索

タグ

質問済み:

Ara
2022 年 6 月 5 日

コメント済み:

2022 年 11 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by