You are on page 1of 3

EL POR QUE DE MATLAB 7.

4 (2007a) SE CIERRA AL GRAFICAR EN MAC LEOPARD

BUENO, PRIMERO ESTO ES UNA FALLA DE DISEO DE APPLE-JAVA, YA QUE SE DEJO DE SACAR ACTUALIZACIONES PARA JAVA (PARA ESTE OS), ENTONCES MATLAB NO PUDO HACER BIEN SUS SCRIPTS PARA HACERLO FUNCIONAR ADECUADAMENTE SOBRE MAC LEOPARD YA SEA EN ARQUITECTURA PPC O EN INTEL, PERO POSTERIORMENTE SACARON UNA MODIFICACION PARA UNA LINEA DE TEXTO EN UNO DE SUS ARCHIVOS DE CONFIGURACION, Y ES AQUI DONDE TENEMOS LA OPCION DE CORREGIR ESTE FALLO. Y A CONTINUACION SE MUESTRA LA SOLUCION:

Subject:
Why does MATLAB crash when starting or when using FIGURE or PLOT after I updated my Mac OS Java in versions prior to MATLAB 7.7 (R2008b)?

Problem Description:
After I updated Mac OS X Java, which could be a part of the OS X version update, MATLAB crashes with this message when I execute FIGURE, PLOT, or SET. On some machines this occurs with any call to FIGURE or PLOT. On other machines, it always occurs on the same line or a script or function that may contain previous calls to PLOT, FIGURE, or SET. Also, sometimes when I am starting up MATLAB:_ This message shows in the terminal if I open MATLAB N from the terminal. If I open MATLAB by clicking on the application, MATLAB just disappears. The same message shows in the Console. Sometimes, no crashdump files are generated.

Solution:
The crash is possibly related to upgrading the Mac OS Java. This issue has been seen in MATLAB R2007a, R2007b, and R2008a, including both Professional and Student versions. Configurations reported with this crash:==============================Mac OS X10.6.8 with Java 1.6.0_29 Mac OS X10.6.8 with Java 1.6.0_26 Mac OS

X 10.5.8 with Java 1.5.0_30 ==============================Please note that OS X 10.6 is not officially suported for MATLAB R2007a, R2007b, and R2008a. Check the System Requirements for a particular MATLAB version here: http://www.mathworks.com/support/sysreq/previous_releases.htmlIf upgrading to a newer version of MATLAB is an option, upgrading MATLAB to versions R2008b or above would fix the crash. If upgrading is not an option, as a workaround, replace a statement in the matlab7rc.sh file (a hidden file in the MATLAB's bin directory) as follows: ========================================== ======<Step 1>:OPEN MATLAB<Step2>:WRITE THIS INSTRUCTION IN MATLAB: open /Applications/MATLAB74/bin/.matlab7rc.sh *the name "MATLAB74" it's the name of the directory of us installation, this name can be change if you have an other version of program, or you called with other name when you installed.*For example, for MATLAB R2008a: open /Applications/MATLAB_R2008a/bin/.matlab7rc. h s <Step3>:Open the matlabrc.sh file in the editor to replace a line as follows: 1. Navigate to Line 410 to locate:DYLD_LIBRARY_PATH=This line is a part of the following code in the "mac" section of matlab7rc.sh: if T [ "$D Y L D _ L I B R A R Y _ P A T H " != "" ]; the n

DL_AI YDY L PR _B R e DL Y D e s l

2. Change the 4th line in the code mentioned above from D Y to DYLD_LIBRARY_PATH=/System/Library/Frameworks/JavaVM.framework/Librari e s <Step 4>:For users on MATLAB R2008a, directly go to Step 5. For users on MATLAB R2007a and R2007b, after making the change IN THIS SECTION, CALLED "mac", PLEASE make the same CHANGE, BUT NOW IN THE "maci" SECTION. This section is right below the "mac" section.<Step 5>:Save the changes by pressing "Command" + "s" keys. <Step 6>:Restart MATLAB. ========================================== ======

You might also like