[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: function movavg dont work with matrix
From: |
LucaLuca |
Subject: |
Re: function movavg dont work with matrix |
Date: |
Wed, 28 Aug 2019 06:34:21 -0500 (CDT) |
hi,
i try diffucult open bug report.
I did the code for the solution (it's not the best but it's good)
y = cumsum (x) ;
n = rows (x) ;
a=x(1:AvgEquity-1,:);
b=y(AvgEquity,:)/AvgEquity;
c= (y(AvgEquity+1:n,:) .- y(1:n-AvgEquity,:))
movAvg=vertcat(a,b,c);
do you like it?
--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html