title: Might be growing inside the loop. Consider Prealocating for Speed
body: <pre><code>clear all
  k_1 = 37.6;
  miu_1 = 41;
  Den = 2.7;
  N = 100;
  n=1;
  phi(1)=1;
  for n=1:N
  phi(n)= 0.3*(n/N);
  K_s(n)= K_1*(1-(1+(3*k_1)/(4*miu_1))*phi(n));
  miu_s(n)= miu_1*(1-(1+(3*k_1)/(4*miu_1))*phi(n));
  den1(n)=Den*(1-phi(n));
  vp(n)=sqrt((k_s(n)+(4/3)*miu_s(n))/den1(n));
  end
  figure(1);
  plot(phi,miu_s);
  figure(2);
  plot (phi,vp)
  </code></pre>
  
  <p>i am new on matlab and do not know what is problem with my code when i run my program only a beep buzz and nothing happens. guide me </p>