|
From: Miguel A. V. <mig...@ho...> - 2016-12-19 22:03:44
|
Hi
I am trying to learn about Maxima and I am doing a “migration” with my scilab’s functions and I have problems with this code
for i=1:168
B(i)=mean(temp(i:i+4));
end
this code in scilab calculate the mean of my “ temp data “ ( a column data) for every 5 values of this column .
Im trying in Maxima with a similar function
for i:1 thru 168 do datatemp[i]:mean(makelist(datatemp[i],i,1,4))
but the result is not the same
(I guess that the problema is in makelist but i do not know how fix it)
I really need help with this code
Thanks
Kind Regards
Miguel Vitiello
|