Unable to do vector division (every element) and append to a new array
<p>I need to append the division between two arrays into a new array. But the same value being iteratively stored into the new array.</p>

<pre><code>clear; close all; 
%Plot G (small - signal gain) vs v (frequency) 
%Assume frequency probe region to be thrice the line-width
f=input('Line Width Frequency(in Hz) :');
v=(-3*f):10e10:(3*f);
l=length(v);
g=zeros(1,l);
k=zeros(1,l);
h=ones(1,l);
% Substituing the constants we realize g(v) is a function 
% line shaping function
for i=1:l
  k(1:i)=((v(1:i)-2.82*10e-4)+((627.95*10e9)^2)); 
end
g=rdivide(h,k);
</code></pre>