Preview only show first 10 pages with watermark. For full document please download

Matlab Fisica Velocidade

matlab fisica Velocidade

   EMBED

  • Rating

  • Date

    December 2018
  • Size

    377 bytes
  • Views

    5,532
  • Categories


Share

Transcript

clear,, ,, V0=input('INTRODUZA A VELOCIDADE =');,, ,, Y0=input('INTRODUZA A ALTURA =');,, DT=input('INTRODUZA A TEMPORAL=');,, A=-9.8;,, V(1)=V0;,, Y(1)=Y0;,, K=1;,, tempo(1)=0;,, while Y(K)>=0,, V(K+1)=V(K)+A*DT;,, Y(K+1)=Y(K)+V(K+1)*DT;,, tempo(K+1)=tempo(K)+DT;,, K=K+1 ;,, end,, figure (1);,, subplot (2,1,1); plot(tempo,Y,'r*-'); subplot(2,1,2); plot(tempo,V,'g*-'); title('velocidade'),,