octave/matlab
gd
gd@linux.it
Ven 7 Set 2007 15:33:03 CEST
Luca Delucchi wrote:
> 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
> _______________________________________________
> La mailing-list del GLUG - Genuense Linux Users Group
> glug@genova.linux.it
> Per informazioni e configurazione: http://lists.linux.it/listinfo/glug
>
>
ma l'hai provato?
credo che l'oggetto tra [] sia una lista ed espresso in dichiarazione
dica che la funzione ritorna la lista
in realtà non ho tempo di leggere il manuale
per me o per te
ciao
Gio
Maggiori informazioni sulla lista
glug