interpret this matlab code in Java

Hello
Please I will like to interpret the following matlab code in java code. I will appreciate it if anyone can help me.
sum (a(1:i)>a(i) + 0.5 * sum(a(i) == a(1:i)))/i
Thanks in advance

댓글 수: 2

Adam
Adam 2019년 8월 7일
There's a closing parentheses missing from somewhere so it's not valid Matlab code. Also 'Sum' is not the same as 'sum'. Is the first supposed to be a variable or the function?
Either way, it doesn't seem like complicated code. I don't program in java myself, but if you do then I would assume it is simple.
Tino
Tino 2019년 8월 7일
편집: Tino 2019년 8월 7일
I have made the necessary adjustment. Thank Adam. I hope someone help me with this

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

제품

릴리스

R2019a

태그

질문:

2019년 8월 7일

편집:

2019년 8월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by