Differences

This shows you the differences between two versions of the page.

sep:software:matlab [2008/07/23 17:51]
mohammad
sep:software:matlab [2015/05/27 02:06] (current)
Line 3: Line 3:
** On what machines Matlab should be run: ** ** On what machines Matlab should be run: **
-Run it from sthelens, and only if sthelens is down, from cher, orsay or tiree. It works on other machines too, but some of the other machines have older versions of the OS and core dump upon exiting from matlab. Some other local machines with new setups work fine. Try your local machine. Matlab is blocked from running on the servers (koko and okok).+cities and moods. 
 +You are not allowed to run it on vostok because of its gateway functionality.
\\ \\
-===== What to do if Matlab won't start =====+ 
 +==== What to do if Matlab won't start ====
There can be three reasons for Matlab not to start: There can be three reasons for Matlab not to start:
-  - //You are on the wrong machine//, usually koko. See previous tip+  - //You are on the wrong machine//, like teslas
-  - //Koko has rebooted and the license manager has not been started yet because the autostart script is broken.// If you do not have koko's root password call either the Matlab Administrator or somebody with a root password. If you do have koko's root password, "su", then "su - lomask" . Type: \\ "/linux_local/matlab71/etc/lmdown -glnx86; /linux_local/matlab71/etc/lmstart -glnx86" +  - //vostok has rebooted and the license manager has not been started yet. The steps to restart license server: 1) Log onto vostok 2) cd /opt/matlab2011b/etc/ 3) run ./lmdown 4) run ./lmstart. If it does not return error msg, it indicates the license manager has been started successfully.//
-  - //More than 5 users are running Matlab//. This happens about two times a quarter. On any machine, type "ls /usr/local/var/matlab*" to find who is running it. The filenames listed will show when matlab was started, by whom and on what machine. If you //really// need to use Matlab, contact the five current Matlab users, find out who needs Matlab the least that very moment and ask him/her to shut down his/hers Matlab session(s) so that you can use it. Every time all five licenses got used, there was at least a person who simply had Matlab open without actually using it. If a machine running Matlab crashes (the whole machine, not just Matlab), the record of that matlab session will not be deleted from "/usr/local/var". If you see a very old Matlab process record that you are //sure// it is not running any longer (i.e. you checked on that machine with "ps aux|grep matlab"), remove by hand the corresponding file from "/usr/local/var". +
-  - //Some important files in one of the subdirectories of "/net/koko/linux_local/matlab71/" or in "/usr/local/bin" have been altered//. Call the Matlab Administrator to reinstall Matlab.+
\\ \\
-===== Backup machines for Matlab =====+ 
 +==== Backup machines for Matlab ====
If "koko" is misbehaving and you need Matlab, of if all five licenses are taken and nobody would close their session, or if you need toolboxes we don't have, you can use the university's machines. Here's how. If "koko" is misbehaving and you need Matlab, of if all five licenses are taken and nobody would close their session, or if you need toolboxes we don't have, you can use the university's machines. Here's how.
Line 69: Line 70:
\\ \\
-=== Troubles to create tiff file from matlab to be included in Power Point ===+==== Troubles to create tiff file from matlab to be included in Power Point ====
From: Biondo From: Biondo
Line 79: Line 80:
\\ \\
-=== How to correctly apply the graphics patches shown above ===+==== How to correctly apply the graphics patches shown above ====
  - Open a //LOCAL MACHINE// window and type: xhost +ashland   - Open a //LOCAL MACHINE// window and type: xhost +ashland
Line 86: Line 87:
\\ \\
-=== Dealing with Matlab's memory fragmentation problem ===+==== Dealing with Matlab's memory fragmentation problem ====
Recently, I gave Matlab a job that required it to go through roughly 400 iterations. The job involved adding some numbers into a big matrix, nothing complex. To my surprise, after 10 hours, it still had not finished running. Recently, I gave Matlab a job that required it to go through roughly 400 iterations. The job involved adding some numbers into a big matrix, nothing complex. To my surprise, after 10 hours, it still had not finished running.
Line 92: Line 93:
\\ \\
-=== Exporting professional-quality figures ===+==== Exporting professional-quality figures ====
//Matlab Digest// describes how to export figures for publications in a reproducible, automatized manner. Links to [[http://www.mathworks.com/company/digest/june00/export/|part 1]] and [[http://www.mathworks.com/company/digest/december00/export.shtml|part2]] of the article. The functions they provide ("exportfig", "previewfig", "applytofig", "restorefig") are now installed on koko too. The [[http://www.mathworks.com/support/tech-notes/1200/1206.shtml|Technical Support Guide to Printing]] is a good resource too. //Matlab Digest// describes how to export figures for publications in a reproducible, automatized manner. Links to [[http://www.mathworks.com/company/digest/june00/export/|part 1]] and [[http://www.mathworks.com/company/digest/december00/export.shtml|part2]] of the article. The functions they provide ("exportfig", "previewfig", "applytofig", "restorefig") are now installed on koko too. The [[http://www.mathworks.com/support/tech-notes/1200/1206.shtml|Technical Support Guide to Printing]] is a good resource too.
\\ \\
-=== LaTeX in Matlab ===+==== LaTeX in Matlab ====
Matlab already handles naturally simple LaTeX encodings that allow introducing Greek lettters or modifying the font size and appearance in plots. The function [[http://www.mathworks.com/matlabcentral/fileexchange/Files.jsp?type=category&id=11&fileId=1231|"teximage"]] (now installed on ashland too) converts //any// LaTeX string to images and displays them in Matlab figures. Matlab already handles naturally simple LaTeX encodings that allow introducing Greek lettters or modifying the font size and appearance in plots. The function [[http://www.mathworks.com/matlabcentral/fileexchange/Files.jsp?type=category&id=11&fileId=1231|"teximage"]] (now installed on ashland too) converts //any// LaTeX string to images and displays them in Matlab figures.
\\ \\
-=== Adding noise to an image ===+==== Adding noise to an image ====
The function "noise.m", now installed on ashland too, adds Gaussian, uniform, salt and pepper, additive or multiplicative noise to an image. The function "noise.m", now installed on ashland too, adds Gaussian, uniform, salt and pepper, additive or multiplicative noise to an image.
\\ \\
-=== Running Matlab without graphics ===+==== Running Matlab without graphics ====
Sometimes you may want to run scripts which contain plotting commands without displaying the plots and without going into the script to comment out the commands. An example: if you're working from home and it's too slow to run graphics over the network. You can play a simple UNIX trick: Sometimes you may want to run scripts which contain plotting commands without displaying the plots and without going into the script to comment out the commands. An example: if you're working from home and it's too slow to run graphics over the network. You can play a simple UNIX trick:
Line 114: Line 115:
\\ \\ \\ \\
-{{page>sep:footer}}+{{page>share:footer&nofooter&noeditbtn}} 
/web/html/data/attic/sep/software/matlab.1216835513.txt.gz · Last modified: 2015/05/26 22:41 (external edit)
www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0