octave/matlab
Luca Delucchi
lucadeluge@gmail.com
Sab 1 Set 2007 10:17:36 CEST
Il 31/08/07, gd<gd@linux.it> ha scritto:
> >
> prova:
> >> function [res]=mediamobile3ponderata(y)
> res=(y(1:end-2) + 2*y(2:end-1) + y(3:end))/4
> endfunction
> >> b=mediamobile3ponderata(a)
> res =
>
> 2 3
>
> b =
>
> 2 3
>
> >>
> non so se va bene
Ottimo, ma quel [res] ha un significato particolare? perchè avevo già
provato qualcosa del genere ma niente da fare!
> ciao
>
ciao
Luca
Maggiori informazioni sulla lista
glug