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 Exchange에서 Communications 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