个人工具
登录
查看“UbuntuHelp:MATLAB”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:MATLAB”的源代码
来自Ubuntu中文
←
UbuntuHelp:MATLAB
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/MATLAB}} {{Languages|UbuntuHelp:MATLAB}} Parent page: [[UbuntuHelp:Programming| Programming Applications]] == Introduction == 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. 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. 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. MATLAB provides a number of features for documenting and sharing your work. You can integrate your MATLAB code with other languages and applications, and distribute your MATLAB algorithms and applications. == MATLAB R2010a Installation Instructions == You will need superuser privileges. The assumption is that MATLAB install files are in '''/media/MATHWORKS_R2010A'''. 1. Create the directory MATLAB will be installed to. It is recommended that you use '''/usr/local/matlabR2010a''': <pre><nowiki> sudo mkdir /usr/local/matlabR2010a </nowiki></pre> 2. Change your working directory to the directory MATLAB will be installed to: <pre><nowiki> cd /usr/local/matlabR2010a/ </nowiki></pre> 3. Run the MATLAB installer: <pre><nowiki> sudo sh /media/MATHWORKS_R2010A/install </nowiki></pre> If you are running the student version on a 64-bit machine, you need to set the -glnx86 flag: <pre><nowiki> sudo sh /media/MATHWORKS_R2010A/install_unix.sh -glnx86 </nowiki></pre> /!\ '''DO NOT START MATLAB AT THE END OF THE INSTALLATION''' ''Starting MATLAB at the end of Product Activation creates a permissions problem for storing MATLAB preferences, since the directory and files inside of ~/.matlab will be created for the root user. However this inconvenience can be easily fixed running the following command:'' <pre><nowiki> sudo chown -R ${USER}:${USER} ~/.matlab </nowiki></pre> === Create A MATLAB Launcher === 1. Get an icon: <pre><nowiki> sudo wget http://upload.wikimedia.org/wikipedia/commons/2/21/Matlab_Logo.png -O /usr/share/icons/matlab.png </nowiki></pre> 2. Get the launcher file: <pre><nowiki> sudo wget 'https://help.ubuntu.com/community/MATLAB?action=AttachFile&do=get&target=matlab-r2010a.desktop' -O /usr/share/applications/matlab.desktop </nowiki></pre> === MEX functions === If you try to compile MEX functions you may see a message like the following: <pre><nowiki> Warning: You are using gcc version "4.4.3-4ubuntu5)". The version currently supported with MEX is "4.2.3". For a list of currently supported compilers see: http://www.mathworks.com/support/compilers/current_release/ </nowiki></pre> '''Note''' this is a warning - the MEX function will still compile. The following instructions will setup gcc 4.2 and make it the default compiler for MATLAB on versions of Ubuntu prior to 10.04 LTS (Lucid): 1. Install The GNU Compiler Collection 4.2 and The GNU Standard C++ Library <pre><nowiki> sudo aptitude install gcc-4.2-multilib libstdc++6-4.2-dev </nowiki></pre> 2. Make a MATLAB specific 'bin' directory for gcc symlink. <pre><nowiki> mkdir ~/.matlab/bin </nowiki></pre> 3. Symlink gcc to gcc-4.2 via user MATLAB specific 'bin' directory. <pre><nowiki> ln -s /usr/bin/gcc-4.2 ~/.matlab/bin/gcc </nowiki></pre> 4. Add MATLAB specific 'bin' directory to the front of your system $PATH within your local startup.m file. <pre><nowiki> printf "setenv(\'PATH\',sprintf(\'/home/%%s/.matlab/bin:%%s\',getenv(\'USER\'),getenv(\'PATH\'));\n" >> ~/Documents/MATLAB/startup.m </nowiki></pre> === Possible Problems === ==== Preferences Permission ==== When you launch your MATLAB Desktop you might see an error message similar to the following: <pre><nowiki> The desktop configuration was not saved successfully Cannot write to preference file "matlab.prf" in "/home/username/.matlab/R2010a". Check file permissions. </nowiki></pre> You can resolve this by exiting all instances of MATLAB and issuing the following command in your terminal: <pre><nowiki> sudo chown -R ${USER}:${USER} ~/.matlab </nowiki></pre> ==== Missing JRE ==== If you are using the student version on a 64-bit system, generate and paste the license.dat file in the /matlab/licenses folder. You may need to contact MATLAB support to generate the dat file. == Previous Versions == Instructions for previous versions can be found here. * [[UbuntuHelp:MATLAB/R2009b|R2009b]] == External Links == For more information about MATLAB see the following links * < http://www.mathworks.com/ > - MathWorks - MATLAB and Simulink for Technical Computing. * < http://www.mathworks.com/products/matlab/ > - MATLAB - The Language Of Technical Computing * < http://www.mathworks.com/access/helpdesk/help/techdoc/matlab.html > - MATLAB Documentation. * < http://www.mathworks.com/support/ > - The MathWorks Support. * < http://www.mathworks.com/matlabcentral/ > - MATLAB Central. * < http://www.mathworks.com/matlabcentral/fileexchange/ > - MATLAB Central File Exchange. ---- [[category:CategoryScience]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:MATLAB
。