个人工具
登录
查看“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]] === MATLAB R2006a Installation Instructions === 1. Run the MATLAB installer Insert CD 1 of 3 and then <pre><nowiki> sudo sh /media/cdrom/install </nowiki></pre> 2. Run MATLAB's post installation script <pre><nowiki> sudo /usr/local/matlab72/install_matlab </nowiki></pre> (discussed in this thread http://ubuntuforums.org/showthread.php?t=19855) 3. Start MATLAB (if you created simlinks): <pre><nowiki> /usr/local/bin/matlab </nowiki></pre> You can pass additional options to start MATLAB, in the format '''matlab -option'''. Here are a few of the most popular ones. <pre><nowiki> -nodesktop Start MATLAB in a console, without the GUI - much faster loading. -nosplash Don't show that annoying MATLAB splash screen as it loads. -nojvm Do not start Java support. This also causes -nodesktop. -r "command" Start MATLAB and execute the given command. -h Show more MATLAB options. </nowiki></pre> An example command would be '''matlab -nojvm -nosplash -r "1+1"''' === Installing from an ISO Image === Alternatively to burning the 3 CDs to cd-rom, you can just mount the iso image and install directly from it. Prepare iso mounting: <pre><nowiki> sudo mkdir /media/iso sudo modprobe loop </nowiki></pre> Then mount the first disk: <pre><nowiki> sudo mount MathWorks_2006b1m.iso /media/iso/ -t iso9660 -o loop </nowiki></pre> And to unmount it: <pre><nowiki> sudo umount /media/iso/ </nowiki></pre> === Modes of Operation === At a minimum, you don't need much to run MATLAB. It will run in the console without X just fine, though naturally missing some functionality such as graphing. Most users, however, use many of the bells and whistles. The Prerequisites section is made with that in mind. To use the MATLAB desktop, GUIDE, Simulink, and all the nice graphs, you need to have [[UbuntuHelp:Java]] installed, and the executable in your path. If you don't, you'll have to run from a terminal, which isn't always the greatest. A quick way to check to see if you have Java in your path is to open a terminal and type '''which java'''. If it comes back with something similar to '''/usr/local/bin''', you're good to go, otherwise you need to follow the instructions in the [[UbuntuHelp:Java]] How-To. You will get far better performance making complex graphs if hardware accelerated openGL rendering is set up properly. Open up a terminal and run the following command. <pre><nowiki> glxinfo | grep direct </nowiki></pre> If the output is `direct rendering: Yes`, then you should be fine. Otherwise you might be able to get it working using non-free graphics drivers. See BinaryDriverHowto. If this doesn't solve your problem, you might have trouble getting direct rendering working on your card. If you are still interested, you might want to search for information on your specific card model and see if anyone else has gotten direct rendering working. === Missing cellfun.mexglx (and other files) === If you are installing Matlab (Version 7.0.1.24704 (R14) Service Pack 1) on a x86 machine with Ubuntu (Breezy Badger) there could be some problems with the permissions on file '''/etc/libc.so.6''', which, by default, does not have executable permission and does not behave like it is expected by some scripts. When some scripts (install and startup scripts) try to query the version of the libc file, they are returned empty strings. Possibly because of this issue, some of the mexglx files are not installed and when matlab starts up, the script '''${matlab_dir}/bin/util/oscheck.sh''' also reports the following error. <pre><nowiki> /opt/matlab/bin/util/oscheck.sh: line 134: /lib/libc.so.6: Permission denied </nowiki></pre> The file '''${matlab_dir}/toolbox/matlab/datatypes/cellfun.mexglx''' was not installed and this could cause problems when trying to execute a simple command such as '''ls''', for e.g., <pre><nowiki> >> ls ??? Attempt to execute SCRIPT cellfun as a function. Error in ==> iscellstr at 13 res = cellfun('isclass',s,'char'); Error in ==> ls at 16 if iscellstr(varargin) </nowiki></pre> One way to solve this would be to modify two lines in the scripts '''${matlab_dir}/bin/util/oscheck.sh''' as well as in the script '''${matlab_install_cd}/install'''. Line 697 of '''${matlab_install_cd}/install''' ---- [[category:CategoryScience]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:MATLAB
。