[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Creation of fuction y=0
From: |
Francesco Potorti` |
Subject: |
Re: Creation of fuction y=0 |
Date: |
Thu, 05 Jun 2008 08:44:50 +0200 |
>y = zeros(1000,1);
>a = rand(1000,1) - 0.5;
>y = y + a;
What's the use of creating a vector of zeros? This equivalent to
y = rand(1000,1) - 0.5;
--
Francesco Potortì (ricercatore) Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR Fax: +39 050 315 2040
via G. Moruzzi 1, I-56124 Pisa Email: address@hidden
(entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it/