help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: zeros(n)


From: octaveUser2M
Subject: Re: zeros(n)
Date: Tue, 16 Sep 2014 20:42:49 -0700 (PDT)

Suggest try:

a = zeros(2);

for i=1:2
b(i) = 0;
end

a
b

The difference between a and b will make it clear; no bug. Consider the size
of zeros(N). Your first A would have 400e6 elements, if created.





--
View this message in context: 
http://octave.1599824.n4.nabble.com/zeros-n-tp4666552p4666556.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]