Hello Guys,
I am struggling to sum the duplicate values in the following array
733943 -0.269926178145507733943 1.01026388377933733943 1.14852185563509733949 3.00248661059463733967 0.258922118015752733988 1.52255831783950733998 1.83156763219728734005 2.78212297367682734005 1.77266990099976734005 1.08892548819182734020 -0.414331330774944734020 1.82288957774126734020 2.15308021389711734020 1.30322099539427734044 1.15435389768749734044 1.76528765989410734052 -0.780095564850535734052 -0.556888544288923734052 -0.223506106870708734052 2.38621682905110734052 2.83778592043497734052 1.36124058024847734053 0.270795033631287734082 -0.0299965318759457734082 0.302341970371696734082 2.27577783905383734082 0.0487635633320927734082 2.89536208413476734082 2.25180288796776734082 2.00949925793319734082 1.90528826428200734108 1.57887252817668734108 1.20029202553859734117 0.948833390261932734128 1.62618452385620734142 1.59160688924087734171 -1.18570629605747734171 1.05327431079761734171 0.594520182104905734171 1.01572731938152734171 0.528895008850812734171 1.71771026362169734171 1.28895153306883
I tried the following
A = ReturnGlobal ( above Array)[n,bin] = histc(A(:,1),unique(A(:,1)))multiple = find(n > 1);index = find(ismember(bin, multiple))
But I am not able to do that correctly.
Normally, I expect a unique date on the right hand side and the sum of values under this date.
Could you please help me?
Thank you
D
Best Answer