What does out of bound 1 means in Octave?
<pre><code>%Program to compute w and r

clear

num = input("Enter your value for n: ");
n=1:num;
w(1)=8000;
for i=2:num
  w=[w(0.98*w(i-1)-250*(i-1)/((i-1)+1))];
end
r(1)=1.50*w(1); 
for i=2:num
   r=[r(1.50*w(i))];
end
format bank;
disp("N      Weight       Revenue");
disp([n', w', r']);
</code></pre>

<p>The output I am getting is: </p>

<pre><code>A(I): Index out of bound; value 7715 out of bound 1
</code></pre>

<p>what mistake I am making here?</p>