interpret this matlab code in Java

1 Ansicht (letzte 30 Tage)
Tino
Tino am 7 Aug. 2019
Bearbeitet: Tino am 7 Aug. 2019
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 Kommentare
Adam
Adam am 7 Aug. 2019
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 am 7 Aug. 2019
Bearbeitet: Tino am 7 Aug. 2019
I have made the necessary adjustment. Thank Adam. I hope someone help me with this

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by