MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > helppppp...summation of the corresponding data 

Subject: helppppp...summation of the corresponding data From: SM Date: 17 Dec, 2011 20:46:08 Message: 1 of 10 
for the same values in column 2, I want to do sum up the corresponding value in column 3 and replace them in corresponding column 4, if the difference between the corresponding value in column 1 is less than TOL, I made it in a following way... 
Subject: helppppp...summation of the corresponding data From: ImageAnalyst Date: 18 Dec, 2011 00:26:31 Message: 2 of 10 
So the rows with 1 in col 2, they have 1,1,6,7 in col3, which adds to 
Subject: helppppp...summation of the corresponding data From: SM Date: 18 Dec, 2011 00:58:08 Message: 3 of 10 
Dear Image analyst... 
Subject: helppppp...summation of the corresponding data From: ImageAnalyst Date: 18 Dec, 2011 06:02:55 Message: 4 of 10 
No, because like I said, I can't figure out how you got the results 
Subject: helppppp...summation of the corresponding data From: SM Date: 18 Dec, 2011 09:35:09 Message: 5 of 10 
the fact is that...the elements of the column 3 are summed up...if the difference between the elements of the difference of the corresponding values in colum one is Less than TOL...:that means if: 
Subject: helppppp...summation of the corresponding data From: ImageAnalyst Date: 18 Dec, 2011 13:58:47 Message: 6 of 10 
On Dec 18, 4:35 am, "SM " <khanmor...@gmail.com> wrote: 
Subject: helppppp...summation of the corresponding data From: SM Date: 18 Dec, 2011 15:14:08 Message: 7 of 10 
Actually, that TOL only checks the validity of the A(:,1) i.e. 
Subject: helppppp...summation of the corresponding data From: SM Date: 18 Dec, 2011 16:00:10 Message: 8 of 10 
Actually, that TOL only checks the validity of the A(:,1) i.e. 
Subject: helppppp...summation of the corresponding data From: ImageAnalyst Date: 18 Dec, 2011 17:30:17 Message: 9 of 10 
% Get first column 
Subject: helppppp...summation of the corresponding data From: SM Date: 18 Dec, 2011 23:00:10 Message: 10 of 10 
I tried the code in following way, but I only get the result for the first group, the loop does not iterating...:(... 
No tags are associated with this thread.
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.