|
From: | Ian McCallion |
Subject: | Re: Sum Row In Matrix |
Date: | Thu, 9 May 2019 15:12:30 +0200 |
i semplity it :
A=dailyprofit;
for i=1:columns(dailyprofit)
for ii=1:rows(dailyprofit)
if i>1
A(ii,i)=A(ii,i-1)+dailyprofit(ii,i);
endif
endfor
endfor
--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
[Prev in Thread] | Current Thread | [Next in Thread] |