Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. //solucion tarea 2
  2.  
  3. exec('load_Elev.sci', -1) // data de las funciones [x, y, z]
  4. exec('interpolate_grid.sci',-1); //Interpolacion de los datos x,y,z
  5.  
  6. //Coordenadas
  7. [x,y,z]=load_Elev('surf-nat.csv');
  8.  
  9. //Matriz con la data [x, y, z]
  10. M= [x; y; z];
  11.  
  12. //Realizacion de la grilla
  13. grilla=interpolate_grid(M,1);
  14.  
  15. // para el calculo del volumen total se calcula de forma individual cada volumen y luego se suman.
  16. // Volumen removido para la nivelacion.
  17. V1 = (x(1,1)* y(1,1) * z(1,1));
  18. V2 = (x(1,2)* y(1,2) * z(1,2));
  19. V3 = (x(1,3)* y(1,3) * z(1,3));
  20. V4 = (x(1,4)* y(1,4) * z(1,4));
  21. V5 = (x(1,5)* y(1,5) * z(1,5));
  22. V6 = (x(1,6)* y(1,6) * z(1,6));
  23. V7 = (x(1,7)* y(1,7) * z(1,7));
  24. V8 = (x(1,8)* y(1,8) * z(1,8));
  25. V9 = (x(1,9)* y(1,9) * z(1,9));
  26. V10 = (x(1,10)* y(1,10) * z(1,10));
  27. V11 = (x(1,11)* y(1,11) * z(1,11));
  28. V12 = (x(1,12)* y(1,12) * z(1,12));
  29. V13 = (x(1,13)* y(1,13) * z(1,13));
  30. V14 = (x(1,14)* y(1,14) * z(1,14));
  31. V15 = (x(1,15)* y(1,15) * z(1,15));
  32. V16 = (x(1,16)* y(1,16) * z(1,16));
  33. V17 = (x(1,17)* y(1,17) * z(1,17));
  34. V18 = (x(1,18)* y(1,18) * z(1,18));
  35. V19 = (x(1,19)* y(1,19) * z(1,19));
  36. V20 = (x(1,20)* y(1,20) * z(1,20));
  37. V21 = (x(1,21)* y(1,21) * z(1,21));
  38. V22 = (x(1,22)* y(1,22) * z(1,22));
  39. V23 = (x(1,23)* y(1,23) * z(1,23));
  40. V24 = (x(1,24)* y(1,24) * z(1,24));
  41. V25 = (x(1,25)* y(1,25) * z(1,25));
  42. V26 = (x(1,26)* y(1,26) * z(1,26));
  43. V27 = (x(1,27)* y(1,27) * z(1,27));
  44. V28 = (x(1,28)* y(1,28) * z(1,28));
  45. V29 = (x(1,29)* y(1,29) * z(1,29));
  46. V30 = (x(1,30)* y(1,30) * z(1,30));
  47. V31 = (x(1,31)* y(1,31) * z(1,31));
  48. V32 = (x(1,32)* y(1,32) * z(1,32));
  49. V33 = (x(1,33)* y(1,33) * z(1,33));
  50. V34 = (x(1,34)* y(1,34) * z(1,34));
  51. V35 = (x(1,35)* y(1,35) * z(1,35));
  52. V36 = (x(1,36)* y(1,36) * z(1,36));
  53. V37 = (x(1,37)* y(1,37) * z(1,37));
  54. V38 = (x(1,38)* y(1,38) * z(1,38));
  55. V39 = (x(1,39)* y(1,39) * z(1,39));
  56. V40 = (x(1,40)* y(1,40) * z(1,40));
  57. V41 = (x(1,41)* y(1,41) * z(1,41));
  58. V42 = (x(1,42)* y(1,42) * z(1,42));
  59. V43 = (x(1,43)* y(1,43) * z(1,43));
  60. V44 = (x(1,44)* y(1,44) * z(1,44));
  61. V45 = (x(1,45)* y(1,45) * z(1,45));
  62. V46 = (x(1,46)* y(1,46) * z(1,46));
  63. V47 = (x(1,47)* y(1,47) * z(1,47));
  64. V48= (x(1,48)* y(1,48) * z(1,48));
  65. V49 = (x(1,49)* y(1,49) * z(1,49));
  66. V50 = (x(1,50)* y(1,50) * z(1,50));
  67. V51 = (x(1,51)* y(1,51) * z(1,51));
  68. V52 = (x(1,52)* y(1,52) * z(1,52));
  69.  
  70. VT= (V1+V2+V3+V4+V5+V6+V7+V8+V9+V10+V11+V12+V13+V14+V15+V16+V17+V18+V19+V20+V21+V22+V23+V24+V25+V26+V27+V28+V29+V30+V31+V32+V33+V34+V35+V36+V37+V38+V39+V40+V41+V4+V43+V44+V45+V46+V47+V48+V49+V50+V51+V52);
  71.  
  72.  
  73. ........................................................................
  74. //Realizacion del grafico por grillas
  75. plot3d(grilla(1),grilla(2),grilla(3));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement