Matlab - menu en GUI

 
Vista:

menu en GUI

Publicado por Santiago (5 intervenciones) el 16/02/2012 18:58:28
Lo q trato de hacer es:
una caratula, una ventana de opciones, cada opcion cierra la ventana de opciones y abre una ventana nueva con otras opciones.
ya he creado cada archivo de las opciones ocea por cada opcion un archivo .fig con su archivo .m y funcionan bien cuando ejecuto por separado.
el problema es cuando quiero juntarlos en un menu para pasar de una a otra interface con un menu hecho solo con pushbutton


Este es el codigo de la interfaz para seleccion de otra interface:

function pushbutton1_Callback(hObject, eventdata, handles)
close
openfig('metodo_biseccion')

function pushbutton2_Callback(hObject, eventdata, handles)
close
openfig('newton_raphshon')

function pushbutton3_Callback(hObject, eventdata, handles)
close
openfig('metodo_secante')

function pushbutton4_Callback(hObject, eventdata, handles)
close
openfig('gaus_jordan')

function pushbutton5_Callback(hObject, eventdata, handles)

close
openfig('polinomio_lagrange')
function pushbutton6_Callback(hObject, eventdata, handles)
close


Gracias de antemano.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de JOSE JEREMIAS CABALLERO
Val: 6.975
Oro
Ha mantenido su posición en Matlab (en relación al último mes)
Gráfica de Matlab

menu en GUI

Publicado por JOSE JEREMIAS CABALLERO (5917 intervenciones) el 16/02/2012 19:48:42
Hola.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function pushbutton1_Callback(hObject, eventdata, handles)
close
metodo_biseccion
 
function pushbutton2_Callback(hObject, eventdata, handles)
close
newton_raphshon
 
function pushbutton3_Callback(hObject, eventdata, handles)
close
metodo_secante
 
function pushbutton4_Callback(hObject, eventdata, handles)
close
gaus_jordan
 
function pushbutton5_Callback(hObject, eventdata, handles)
close
polinomio_lagrange
 
function pushbutton6_Callback(hObject, eventdata, handles)
close



Saludos.
JOSE JEREMIAS CABALLERO

Servicios de programacion matlab


Asesor de Proyectos con Matlab
programador en matlab
"Detalladar sus preguntas, para recibir respuestas acertadas"
[email protected]
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

Instalar el compilador

Publicado por Santiago Jeri Flores (5 intervenciones) el 16/02/2012 20:42:24
muchas gracias, me ayudaste bastante, disculpa q te siga molestando, tengo otro problema ahora quiero crear el ejecutable de mis programas.
pero al buscar con:

>> mbuild -setup
>> mex -setup

me dice q no hay compiladores:
none [0]

no c como resolver eso talvez conseguir otro compilador, por q yo tengo otros programas como el devc++, y funcionan bien sus compiladores.

gracias de antemano
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
Imágen de perfil de JOSE JEREMIAS CABALLERO
Val: 6.975
Oro
Ha mantenido su posición en Matlab (en relación al último mes)
Gráfica de Matlab

Instalar el compilador

Publicado por JOSE JEREMIAS CABALLERO (5917 intervenciones) el 17/02/2012 05:44:14
hola.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
>> mbuild -setup
 
Welcome to mbuild -setup.  This utility will help you set up
a default compiler.  For a list of supported compilers, see
http://www.mathworks.com/support/compilers/R2011b/win32.html 
 
Please choose your compiler for building standalone MATLAB applications:
 
Would you like mbuild to locate installed compilers [y]/n? y
 
Select a compiler:
[1] Lcc-win32 C 2.4.1 in C:\ARCHIV~1\MATLAB\R2011b\sys\lcc
 
[0] None
 
Compiler: 1
 
Please verify your choices:
 
Compiler: Lcc-win32 C 2.4.1
Location: C:\ARCHIV~1\MATLAB\R2011b\sys\lcc
 
Are these correct [y]/n? y
 
Trying to update options file: C:\Documents and Settings\JEREMIAS\Datos de programa\MathWorks\MATLAB\R2011b\compopts.bat
From template:              C:\ARCHIV~1\MATLAB\R2011b\bin\win32\mbuildopts\lcccompp.bat
 
Done . . .
 
>> mex -setup
 
 
Welcome to mex -setup.  This utility will help you set up
a default compiler.  For a list of supported compilers, see
http://www.mathworks.com/support/compilers/R2011b/win32.html 
 
Please choose your compiler for building MEX-files:
 
Would you like mex to locate installed compilers [y]/n? y
 
Select a compiler:
[1] Lcc-win32 C 2.4.1 in C:\ARCHIV~1\MATLAB\R2011b\sys\lcc
 
[0] None
 
Compiler: 1
 
Please verify your choices:
 
Compiler: Lcc-win32 C 2.4.1
Location: C:\ARCHIV~1\MATLAB\R2011b\sys\lcc
 
Are these correct [y]/n? y
 
Trying to update options file: C:\Documents and Settings\JEREMIAS\Datos de programa\MathWorks\MATLAB\R2011b\mexopts.bat
From template:              C:\ARCHIV~1\MATLAB\R2011b\bin\win32\mexopts\lccopts.bat
 
Done . . .
 
**************************************************************************
  Warning: The MATLAB C and Fortran API has changed to support MATLAB
           variables with more than 2^32-1 elements.  In the near future
           you will be required to update your code to utilize the new
           API. You can find more information about this at:
           http://www.mathworks.com/support/solutions/en/data/1-5C27B9/?solution=1-5C27B9 
           Building with the -largeArrayDims option enables the new API.
**************************************************************************



Saludos.
JOSE JEREMIAS CABALLERO

Servicios de programacion matlab


Asesor de Proyectos con Matlab
programador en matlab
"Detalladar sus preguntas, para recibir respuestas acertadas"
[email protected]
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

Instalar el compilador

Publicado por Santiago (5 intervenciones) el 17/02/2012 05:56:06
gracias, estuve averiguando sobre eso y si he probado con lo q me dices, pero hay un problemita, es q la version q yo tengo de matlab es la r2010a 7.10 en 64bits , por lo q he visto en los foros y el la pagina oficial de mathwork la version q tengo instalada no incluye un compilador como el LCC, lo q he intentado es instalar otros compiladores como el microsoft visual studio 2010. pero no c como hacer para q me salga en la lista de mbuild -setup

si sabes de otra manera te lo agradeceria o talvez la manera de usar otro compilador.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar