SHARE
TWEET

Untitled

cardel Sep 7th, 2018 104 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Autor: Docente curso métodos númericos
  2. //Fecha: 7 de Septiembre 2018
  3. //Ejemplo de clase
  4. clear all
  5.  
  6. function f=ecuacionParacaidas(g,m,fr,t)
  7.     f = m*g*(1-exp(-fr*t/m))/fr
  8. endfunction
  9.  
  10. g = 9.8
  11. m = 68.1
  12. fr = 12.5
  13.  
  14. // valor-inicial:incremento:valor-final
  15. t = 0:1:20
  16. resultado =ecuacionParacaidas(g,m,fr,t)
  17.  
  18. plot(t,resultado,"r-")
  19. xtitle("Velocidad del paracaidista con respecto al tiempo")
  20. xlabel("Tiempo (s)")
  21. ylabel("Velocidad (m/s)")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top