{"id":476,"date":"2013-07-07T22:27:10","date_gmt":"2013-07-08T03:27:10","guid":{"rendered":"http:\/\/blog.espol.edu.ec\/dannpetroche\/?p=476"},"modified":"2013-07-07T22:29:43","modified_gmt":"2013-07-08T03:29:43","slug":"476","status":"publish","type":"post","link":"https:\/\/blog.espol.edu.ec\/dannpetroche\/2013\/07\/07\/476\/","title":{"rendered":""},"content":{"rendered":"<p>ola que ase, prediciendo puntos al ojo o que hace, pues bien les tengo un tutorial super chievere para predecir sus puntos usando interpolaci\u00f3n num\u00e9rica. COMENZAMOS!<\/p>\n<p>1) Primero desc\u00e1rguense los programas \u201ctrazadorsujeto.m\u201d y \u201ctridiagonal.m\u201d que est\u00e1n adjunto a esta nota.<\/p>\n<p>2) Ahora abran Matlab y f\u00edjense en el CURRENT DIRECTORY:<\/p>\n<p><a href=\"http:\/\/blog.espol.edu.ec\/dannpetroche\/files\/2013\/07\/1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-477\" src=\"http:\/\/blog.espol.edu.ec\/dannpetroche\/files\/2013\/07\/1.jpg\" alt=\"\" width=\"626\" height=\"204\" srcset=\"https:\/\/blog.espol.edu.ec\/dannpetroche\/files\/2013\/07\/1.jpg 626w, https:\/\/blog.espol.edu.ec\/dannpetroche\/files\/2013\/07\/1-300x97.jpg 300w\" sizes=\"auto, (max-width: 626px) 100vw, 626px\" \/><\/a><\/p>\n<p>3) Copian los programas y se dirigen a ese CURRENT DIRECTORY que en mi caso es C:\/MATLAB6P5\/work y PEGAN los programas \u201ctrazadorsujeto.m\u201d y \u201ctridiagonal.m\u201d<\/p>\n<p><a href=\"http:\/\/blog.espol.edu.ec\/dannpetroche\/files\/2013\/07\/2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-478\" src=\"http:\/\/blog.espol.edu.ec\/dannpetroche\/files\/2013\/07\/2.jpg\" alt=\"\" width=\"532\" height=\"172\" srcset=\"https:\/\/blog.espol.edu.ec\/dannpetroche\/files\/2013\/07\/2.jpg 532w, https:\/\/blog.espol.edu.ec\/dannpetroche\/files\/2013\/07\/2-300x96.jpg 300w\" sizes=\"auto, (max-width: 532px) 100vw, 532px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>4) Ahora definen sus puntos<\/p>\n<p><a href=\"http:\/\/blog.espol.edu.ec\/dannpetroche\/files\/2013\/07\/3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-479\" src=\"http:\/\/blog.espol.edu.ec\/dannpetroche\/files\/2013\/07\/3.jpg\" alt=\"\" width=\"169\" height=\"258\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Primero la matriz horas aforadas:<\/strong><\/p>\n<p>[7 8 10 11 14 15 17 18 21 22 30]<\/p>\n<p>Inicio en 7 porque digo que el valor representa el final de mi intervalo.<\/p>\n<p>IMPORTANTE: Coloco 30 como dato ya que representa el 6am y tiene el mismo valor inicial!!!<\/p>\n<p><strong>Segundo la matriz datos aforados:<\/strong><\/p>\n<p>[15 29 87 80 119 107 80 92 93 90 15]<\/p>\n<p>IMPORTANTE: El ultimo valor tiene que ser igual al primero!!!!<\/p>\n<p><strong>Tercero la matriz datos a interpolar:<\/strong><\/p>\n<p>[7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30]<\/p>\n<p><strong>OJO<\/strong>: LA <strong>MATRIZ DATOS AFORADOS<\/strong> ES LA UNICA QUE TIENEN QUE MODIFICAR, TIENEN QUE VERIFICAR QUE EL <strong>VALOR INICIAL<\/strong> SEA IGUAL QUE EL <strong>ULTIMO<\/strong> Y QUE EL <strong>NUMERO DE DATOS<\/strong> DE LA <strong>MATRIZ HORAS AFORADAS<\/strong> SEAN <strong>IGUALES<\/strong> AL <strong>NUMERO DE DATOS<\/strong> DE LA <strong>MATRIZ DATOS AFORADOS<\/strong><\/p>\n<p>AHORA SI A HACERLE AL MATLAB<\/p>\n<p>Copian lo siguiente al comant window de matlab<\/p>\n<p>a= trazadorsujeto([matriz horas aforadas],[matriz datos aforados],0,0,[matriz datos a interpolar])<\/p>\n<p>SOLO MODIFICAN LO ROJO CON SUS DATOS NO SE OLVIDEN DE REVISAR EL OJO DE ARRIBA.<\/p>\n<p>a= trazadorsujeto([7 8 10 11 14 15 17 18 21 22 30], [15 29 87 80 119 107 80 92 93 90 15],0,0, [7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30])<\/p>\n<p>Copian lo de arriba y lo pegan en Matlab<\/p>\n<p>Y este es el resultado:<\/p>\n<p><a href=\"http:\/\/blog.espol.edu.ec\/dannpetroche\/files\/2013\/07\/4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-large wp-image-480\" src=\"http:\/\/blog.espol.edu.ec\/dannpetroche\/files\/2013\/07\/4-1024x251.jpg\" alt=\"\" width=\"1024\" height=\"251\" srcset=\"https:\/\/blog.espol.edu.ec\/dannpetroche\/files\/2013\/07\/4-1024x251.jpg 1024w, https:\/\/blog.espol.edu.ec\/dannpetroche\/files\/2013\/07\/4-300x73.jpg 300w, https:\/\/blog.espol.edu.ec\/dannpetroche\/files\/2013\/07\/4.jpg 1365w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Esos son los valores correspondientes a 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 que en espa\u00f1ol serian a<\/p>\n<p>7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 2 3 4 5 6<\/p>\n<p>Redondean en ch\u00e9vere los datos y se van a Excel y hacen algo parecido a esto:<\/p>\n<p><a href=\"http:\/\/blog.espol.edu.ec\/dannpetroche\/files\/2013\/07\/5.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-481\" src=\"http:\/\/blog.espol.edu.ec\/dannpetroche\/files\/2013\/07\/5.jpg\" alt=\"\" width=\"928\" height=\"508\" srcset=\"https:\/\/blog.espol.edu.ec\/dannpetroche\/files\/2013\/07\/5.jpg 928w, https:\/\/blog.espol.edu.ec\/dannpetroche\/files\/2013\/07\/5-300x164.jpg 300w\" sizes=\"auto, (max-width: 928px) 100vw, 928px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: left\">Obviamente no representan tendencias reales desde las 24h hasta las 6am debido que no existe un dato intermedio, pero es una gran aproximaci\u00f3n y tb \u201caplicamos algo de an\u00e1lisis num\u00e9rico en la Ingenier\u00eda\u201d para los que dec\u00edan \u201cpara que vamos a usar eso\u201d lol<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ola que ase, prediciendo puntos al ojo o que hace, pues bien les tengo un tutorial super chievere para predecir sus puntos usando interpolaci\u00f3n num\u00e9rica. COMENZAMOS! 1) Primero desc\u00e1rguense los programas \u201ctrazadorsujeto.m\u201d y \u201ctridiagonal.m\u201d que est\u00e1n adjunto a esta nota. 2) Ahora abran Matlab y f\u00edjense en el CURRENT DIRECTORY: 3) Copian los programas y [&hellip;]<\/p>\n","protected":false},"author":4804,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-476","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.espol.edu.ec\/dannpetroche\/wp-json\/wp\/v2\/posts\/476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.espol.edu.ec\/dannpetroche\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.espol.edu.ec\/dannpetroche\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/dannpetroche\/wp-json\/wp\/v2\/users\/4804"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/dannpetroche\/wp-json\/wp\/v2\/comments?post=476"}],"version-history":[{"count":5,"href":"https:\/\/blog.espol.edu.ec\/dannpetroche\/wp-json\/wp\/v2\/posts\/476\/revisions"}],"predecessor-version":[{"id":492,"href":"https:\/\/blog.espol.edu.ec\/dannpetroche\/wp-json\/wp\/v2\/posts\/476\/revisions\/492"}],"wp:attachment":[{"href":"https:\/\/blog.espol.edu.ec\/dannpetroche\/wp-json\/wp\/v2\/media?parent=476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/dannpetroche\/wp-json\/wp\/v2\/categories?post=476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/dannpetroche\/wp-json\/wp\/v2\/tags?post=476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}