MATLAB® is a high-level language and interactive environment that enables you to perform computationally intensive tasks faster than with traditional programming languages such as C, C , and Fortran. MathWorks - MATLAB and Simulink for Technical Computing.Release 2011a includes new features in MATLAB® and Simulink®, two new products, and updates and bug fixes to 81 other products. Supported and Compatible Compilers – Release 2011a - Linuxįor more information about MATLAB see the following links The next time you run MEX in MATLAB to compile it will work properly.įor more ideas, try this thread or this one. Learn more about crash, startup Hi, For some reason my Matlab r2011a will no longer start, I see the splash screen briefly, and then it disappears without any warning or anything else, and the application window never appears. This will copy to your home directory a local copy of the file mexopts.sh.Īnd replace all instances of CC='gcc' to CC='gcc-4.3', CXX='g ' to CXX='g -4.3', and FC='gfortran' to FC='gfortran-4.3'. Template Options file for building MEX-files via the system ANSI compiler At the MATLAB Command Window prompt, type:Īnd choose option 2 which says: 2: /usr/local/MATLAB/R2011a/bin/mexopts.sh : So ask the technical support before you try it. Steps 3 and 4 above may not work for at least one instance of a user trying to compile using MEX in MATLAB R2011a running on Ubuntu 10.10. Jan on Although it might be possible to create a portable version of Matlab which is not bounded to a specific computer, this is most likely not covered by the license conditions. printf "setenv('PATH',sprintf('/home/%%s/.matlab/bin:%%s',getenv('USER'),getenv('PATH'))) \n" > ~/Documents/MATLAB/startup.m Add MATLAB specific 'bin' directory to the front of your system $PATH within your local startup.m file. Symlink gcc to gcc-4.3 via user MATLAB specific 'bin' directory. Make a MATLAB specific 'bin' directory for gcc symlink. Install The GNU Compiler Collection 4.3 and The GNU Standard C Library sudo apt-get install gcc-4.3-multilib libstdc 6-4.3-devĢ. The following instructions will setup gcc 4.3 and make it the default compiler for MATLAB:ġ. Note this is a warning - the MEX function will still compile. The versionįor a list of currently supported compilers see: If you try to compile MEX functions you may see a message like the following: Warning: You are using gcc version "4.4.4-14ubuntu5)". If you get two MATLAB launcher icons in your Unity laucher, try adding this line to /usr/share/applications/sktop: StartupWMClass=com-mathworks-util-PostVMInit Get the launcher file: sudo wget '' -O /usr/share/applications/sktop Get an icon: sudo wget -O /usr/share/icons/matlab.pngĢ. When given the option to 'Create symbolick links to MATLAB scripts in:' it is recommended that you check the box and use the supplied path /usr/local/bin.ġ. When prompted to 'Specify installation folder' it is recommended that you use the default folder /usr/local/MATLAB/R2011a.Ĥ. R2011a shipped back in April, but I havent said too much about it, yet. This will allow you to create symbolic links to MATLAB in /usr/local/bin.ģ. When prompted to 'Choose installation type' you should select custom. Run the MATLAB installer with the following Terminal command: sudo /media/MATHWORKS_R2011A/installĢ. The assumption is that MATLAB install files are located at /media/MATHWORKS_R2011a in your filesystem.ġ. Installation of MATLAB R2011a on unsupported Ubuntu releases are outside the scope of this documentation. MATLAB R2011a users are strongly encouraged to install R2011a on Ubuntu 10.04 LTS or Ubuntu 10.10 for best results. Consequently Ubuntu 11.04 is not a supported operating system for MATLAB R2011a. Please note that this is prior to the release of Ubuntu 11.04. MATLAB R2011a was released on April 8, 2011. You can integrate your MATLAB code with other languages and applications, and distribute your MATLAB algorithms and applications. MATLAB provides a number of features for documenting and sharing your work. Add-on toolboxes (collections of special-purpose MATLAB functions, available separately) extend the MATLAB environment to solve particular classes of problems in these application areas. You can use MATLAB in a wide range of applications, including signal and image processing, communications, control design, test and measurement, financial modeling and analysis, and computational biology.
0 Comments
Leave a Reply. |