presentacion investigacion
DESCRIPTION
Presentacion InvestigacionTRANSCRIPT
![Page 1: Presentacion Investigacion](https://reader036.vdocumento.com/reader036/viewer/2022062502/577c7c9b1a28abe0549b448b/html5/thumbnails/1.jpg)
![Page 2: Presentacion Investigacion](https://reader036.vdocumento.com/reader036/viewer/2022062502/577c7c9b1a28abe0549b448b/html5/thumbnails/2.jpg)
DEPARTAMENTO DE ELECTRICA Y ELECTRONICA
TECNOLOGIAS DEL SOFTWARE I
• INTEGRANTES:» TNTE. DE COM. NOBOA C. JORGE» ESTU. EDUARDO VACA CANO» ESTU. PAUL VILLACIS SANCHEZ
• PROFESOR:– ING. DARWIN ALULEMA
![Page 3: Presentacion Investigacion](https://reader036.vdocumento.com/reader036/viewer/2022062502/577c7c9b1a28abe0549b448b/html5/thumbnails/3.jpg)
TEMA:MANEJO DE CONSOLA CMD DE WINDOWS POR MEDIO DE JAVA
• SUMARIO» PLANTEAMIENTO DEL PROBLEMA» OBJETIVOS» MARCO TEORICO» DIAGRAMAS» MAPA DE VARIABLES» EXPLICACION DE LOS METODOS O FUNCIONES» CONCLUSIONES Y RECOMENDACIONES» MANUAL DE USUARIO» PAPER» BIBLIOGRAFIA» VIDEO
![Page 4: Presentacion Investigacion](https://reader036.vdocumento.com/reader036/viewer/2022062502/577c7c9b1a28abe0549b448b/html5/thumbnails/4.jpg)
OBJETIVO GENERAL
•
T o d a a c t i v i d a d d e v a l o r e n c i e r r a e n s i m i s m a “ T E C N O L O G Í A ”
Implementar un programa de JAVA que permite el ingreso o un hipervínculo directo con MATLAB de Windows mediante un el manejo de Funciones (GRAFICAS) en el sistema operativo de Windows.
![Page 5: Presentacion Investigacion](https://reader036.vdocumento.com/reader036/viewer/2022062502/577c7c9b1a28abe0549b448b/html5/thumbnails/5.jpg)
T o d a a c t i v i d a d d e v a l o r e n c i e r r a e n s i m i s m a “ T E C N O L O G Í A ”
PLANTEAMIENTO DEL PROBLEMA
![Page 6: Presentacion Investigacion](https://reader036.vdocumento.com/reader036/viewer/2022062502/577c7c9b1a28abe0549b448b/html5/thumbnails/6.jpg)
OBJETIVOS ESPECIFICOS
T o d a a c t i v i d a d d e v a l o r e n c i e r r a e n s i m i s m a “ T E C N O L O G Í A ”
• Investigar el uso de clases especiales que nos ayuden al ingreso de MATLAB.
• Determinar el uso y parámetros de programación de la Clase JMATLINK.
• Determinar el uso del comando TRY.• Implementar un programa en Java que permita el ingreso
a MATLAB, realice una evaluación de una función dada y grafique a través de un entorno grafico la función solicitada.
• Investigar los cambios que debe sufrir un código, para que este programa sea ejecutado como un nexo entre JAVA y MATLAB.
• Conocer el funcionamiento de JMatlink.• Integrar JMatlink en Java.• Implementar métodos de la clase JMatlink en un
programa.
![Page 7: Presentacion Investigacion](https://reader036.vdocumento.com/reader036/viewer/2022062502/577c7c9b1a28abe0549b448b/html5/thumbnails/7.jpg)
T o d a a c t i v i d a d d e v a l o r e n c i e r r a e n s i m i s m a “ T E C N O L O G Í A ”
MARCO TEORICO
![Page 8: Presentacion Investigacion](https://reader036.vdocumento.com/reader036/viewer/2022062502/577c7c9b1a28abe0549b448b/html5/thumbnails/8.jpg)
![Page 9: Presentacion Investigacion](https://reader036.vdocumento.com/reader036/viewer/2022062502/577c7c9b1a28abe0549b448b/html5/thumbnails/9.jpg)
![Page 10: Presentacion Investigacion](https://reader036.vdocumento.com/reader036/viewer/2022062502/577c7c9b1a28abe0549b448b/html5/thumbnails/10.jpg)
![Page 11: Presentacion Investigacion](https://reader036.vdocumento.com/reader036/viewer/2022062502/577c7c9b1a28abe0549b448b/html5/thumbnails/11.jpg)
Clase JMATLINK
JMATLINK
Es una librería que
conecta Java y Matlab
Necesita de tres clases:
- CoreJMatLink- JMatLink
- JMatLinkException
Basado en JNI (Java Native
Interface)
![Page 12: Presentacion Investigacion](https://reader036.vdocumento.com/reader036/viewer/2022062502/577c7c9b1a28abe0549b448b/html5/thumbnails/12.jpg)
REQUERIMIENTO MINIMOS DE SOFTWARE
1• Windows95/98/NT/7 (otros
no probado)
2• MATLAB 2008a
3• Java2 (jdk6)
![Page 13: Presentacion Investigacion](https://reader036.vdocumento.com/reader036/viewer/2022062502/577c7c9b1a28abe0549b448b/html5/thumbnails/13.jpg)
CARACTERISTICAS DEL MATLAB BUILDER JA
Escritorio libre de regalías y el despliegue Web de clases
de Java
Posibilidad de clases puerto no contiene MEX-a todos los
archivos de MATLAB las plataformas
API para la conversión automática entre los datos de
Java y MATLAB tipos
![Page 14: Presentacion Investigacion](https://reader036.vdocumento.com/reader036/viewer/2022062502/577c7c9b1a28abe0549b448b/html5/thumbnails/14.jpg)
PASOS DE UTILIZACION DEL MATLAB BUILDER JA
• Creamos el archivo m donde va estar los scripts o funciones que vamos a utilizar en nuestro programa
• En el command window de Matlab introduzco el comando deploytool con el cual se abre una ventana
• En esta ventana selecciono la opción Matlab builder JA, se da un nombre al proyecto y elijo su localización
• En la carpeta con el mismo nombre del proyecto copio el archivo m y presiono la opción build the proyect con el cual me genera un jar del archivo m con el nombre del proyecto
• Este archivo jar lo agrego a mi java aplication y así puedo utilizar objetos de esta clase, la función o el scribt es un método de la clase llamado con el nombre del archivo m, para poder utilizar estos métodos hay que tener presente la utilización de la función dispose
• Tambien debemos agregar el jar javabuilder que se encuentra en la carpeta Matlab,toolbox,javabuilder, y en jar.
![Page 15: Presentacion Investigacion](https://reader036.vdocumento.com/reader036/viewer/2022062502/577c7c9b1a28abe0549b448b/html5/thumbnails/15.jpg)
DIAGRAMAS• DIAGRAMA DE BLOQUES DE LA CLASE
INICIO
INGRESO DE FUNCIONES EN M-editor DE MATLAB
REALIZAR EL JAVA PACKAGE EL EMPAQUETADO DE LIBRERIA
REALIZAR EL LINEA DE COMANDOS DE MATLAB EL EMPLEO DE DEPLOYTOOLS
SE REALIZA LA COMPILACION DE LAS LIBRERIAS
SE CREA UNA CARPETA LIB EN NETBEANS DEL PROYECTO
SE COPIAN LAS LIBRERIAS CREADAS POR LA COMPILACION
SE AGREGAN LAS MISMAS POR PROPIEDADES
SE INCORPORAN LAS IMPORTACIONES Y SE RESERVA ESPACIO DE MEMORIA
EMPLEO DE COMANDOS M.
COMPILACION Y CORRIDO DEL PROYECTO
GRAFICA DE LA FUNCION DESDE MATLAB
FIN
![Page 16: Presentacion Investigacion](https://reader036.vdocumento.com/reader036/viewer/2022062502/577c7c9b1a28abe0549b448b/html5/thumbnails/16.jpg)
DIAGRAMA UML
vista
+Graficos()()+btnSalir2ActionPerformed(java.awt.event.ActionEvent evt)()+btnSenoActionPerformed(java.awt.event.ActionEvent evt)()+btnCosenoActionPerformed(java.awt.event.ActionEvent evt)()+btnTangenteActionPerformed(java.awt.event.ActionEvent evt)()+btnExponencialActionPerformed(java.awt.event.ActionEvent evt)()+btnGraficarActionPerformed(java.awt.event.ActionEvent evt)()+void main(String args[])()
-btnCoseno:javax.swing.JButton-btnExponencial: javax.swing.JButton-btnGraficar:javax.swing.JButton-btnSalir2:javax.swing.JButton-btnSeno:javax.swing.JButton-btnTangente:javax.swing.JButton-jLabel1:javax.swing.JButton
Graficos
+Menu()()+btnSalirActionPerformed(java.awt.event.ActionEvent evt)()+btnGrafActionPerformed(java.awt.event.ActionEvent evt)()+btndevActionPerformed(java.awt.event.ActionEvent evt)()+btnIntActionPerformed(java.awt.event.ActionEvent evt)()+btnmatActionPerformed(java.awt.event.ActionEvent evt)()+void main(String args[])()
-btnGraf:javax.swing.JButton-btnInt:javax.swing.JButton-btnSalir:javax.swing.JButton-btndev:javax.swing.JButton-btnmat:javax.swing.JButton-jLabel1:javax.swing.JLabel
Menu
+void main(String[] args)()
Principal
![Page 17: Presentacion Investigacion](https://reader036.vdocumento.com/reader036/viewer/2022062502/577c7c9b1a28abe0549b448b/html5/thumbnails/17.jpg)
CONSTRUCCIÓN Y ELEMENTOS DEL ENVASE CON LA HERRAMIENTA DE
IMPLEMENTACIÓN• La herramienta de implementación es una interfaz gráfica de usuario proporcionada por MATLAB Compiler. Se utiliza para construir las clases de Java de las aplicaciones de MATLAB y luego el paquete para su implementación.
Desde la herramienta de implementación se puede:
• Agregar archivos de MATLAB y archivos MEX-para servir como externamente visibles métodos de la clase de su componente.
• Automáticamente recoger y empaquetar los archivos de desplegar con el componente.
• Agregar archivos de soporte, incluyendo el MCR, que se incluye con el componente en un archivo ejecutable autoextraíble.
• Guardar las preferencias de compilación y empaquetado.
![Page 18: Presentacion Investigacion](https://reader036.vdocumento.com/reader036/viewer/2022062502/577c7c9b1a28abe0549b448b/html5/thumbnails/18.jpg)
EJEMPLO DE BARRA DE PROGRESO DE MATLAB BUILDER JA
![Page 19: Presentacion Investigacion](https://reader036.vdocumento.com/reader036/viewer/2022062502/577c7c9b1a28abe0549b448b/html5/thumbnails/19.jpg)
CODIGOS IMPORTANTES
• Código en Matlab
• x=1:0.1:10;• plot(sin(x));• return
• Código en Java:
• try {• Proyect obj5=new
Proyect();• obj5.seno();• obj5.waitForFigures();• obj5.dispose();• } catch (MWException
ex) { Logger.getLogger(Graficos.class.getName()).log(Level.SEVERE, null, ex);
• }
![Page 20: Presentacion Investigacion](https://reader036.vdocumento.com/reader036/viewer/2022062502/577c7c9b1a28abe0549b448b/html5/thumbnails/20.jpg)
GRAFICO DE LA PROUESTA PRESENTADA
![Page 21: Presentacion Investigacion](https://reader036.vdocumento.com/reader036/viewer/2022062502/577c7c9b1a28abe0549b448b/html5/thumbnails/21.jpg)
RECOMENDACIONES
T o d a a c t i v i d a d d e v a l o r e n c i e r r a e n s i m i s m a “ T E C N O L O G Í A ”
CONCLUSIONES
CONCLUSIONES Y RECOMENDACIONES
![Page 22: Presentacion Investigacion](https://reader036.vdocumento.com/reader036/viewer/2022062502/577c7c9b1a28abe0549b448b/html5/thumbnails/22.jpg)
T o d a a c t i v i d a d d e v a l o r e n c i e r r a e n s i m i s m a “ T E C N O L O G Í A ”
TIPS INFORMÁTICOS DEL PROGRAMA
MANUAL DE USUARIONO SE COMO
FUNCIONA ESE PROGRAMA OJALA TENGA UN MANUAL
![Page 23: Presentacion Investigacion](https://reader036.vdocumento.com/reader036/viewer/2022062502/577c7c9b1a28abe0549b448b/html5/thumbnails/23.jpg)
VIDEO
BIBLIOGRAFIA
T o d a a c t i v i d a d d e v a l o r e n c i e r r a e n s i m i s m a “ T E C N O L O G Í A ”
Libros – documentos impresos: Bobadilla, J (1993). Java Atraves De Ejemplos . Preshman Scottman 120(2), 23-25. Eckel, B (1998). Piensa En Java 2da Edición. Fortune 321(8), 45 – 47. Internet – documentos en línea: http://translate.google.com/translate?hl=es&sl=en&u=http://www.mathworks.com/help/toolbox/compiler/deploytool.html&ei=ZuLnTfGBPdShtwfxyq28Cg&sa=X&oi=translate&ct=result&resnum=2&ved=0CDIQ7gEwAQ&prev=/search%3Fq%3DDEPLOYTOOL%26hl%3Des%26biw%3D986%26bih%3D543%26prmd%3Divnshttp://translate.google.com/translate?hl=es&sl=en&u=http://www.held-mueller.de/JMatLink/download.html&ei=u-bnTabtBorz0gGDkt2SCw&sa=X&oi=translate&ct=result&resnum=2&sqi=2&ved=0CCoQ7gEwAQ&prev=/search%3Fq%3Djmatlink%26hl%3Des%26biw%3D1120%26bih%3D615%26prmd%3Divnshttp://es.wikipedia.org/wiki/Builder_(patr%C3%B3n_de_dise%C3%B1o)http://www.mathworks.com/products/demos/compiler/deploytool/