pops out the commandhistory window. but this window does not remember all the commands executed in terminal emulator
>>setenv('LD_LIBRARY_PATH',[getenv('PATH') getenv('LD_LIBRARY_PATH')])
Add the system library in front of the matlab library. this is exetrmely useful when running system command in matlab using "!"
Debugging in command line
dbstop in Datareading
where Datareading is the file name where script is suppose to stop
Datareading
then scripts starts to run, and EDITOR pops out.
dbclear
clear out all the breaking point
2. U
se editor to edit one file
>>edit ~/Dropbox/Matlab/SutraLab/SutraLab/mfiles/slsetpath
methodsview -- show all the methods
3. Make sure tiff files are exactly the same as eps file:
See my question: http://stackoverflow.com/questions/3600945/printing-a-matlab-plot-in-exact-dimensions-on-paperalternative solution: using bash command:
convert -colorspace RGB -density 300 coutour.eps -resize 1024x1024 image.jpg
another better command gives high compression filesconvert -colorspace RGB -density 1000 coutour.eps -resize 1000x1000 -compress ZIP image.tif
the export_fig is a useful tool to work for figure output.but I found it is not very friendly with linux.
so the getaround is again, using linux to do caluclation, and then use windows to output results.
4. Font size does not change in matlab in Linux 15-07-14
there are serveral things to look into for solving this problem(1) check if you have something missing with the font.
http://stackoverflow.com/questions/16218979/changing-figure-fonts-in-matlab-has-no-effect
sudo apt-get install xfonts-75dpi xfonts-100dpi
This works for my ubuntu machine.in gentoo linux,
emerge -av media-fonts/font-adobe-100dpi media-fonts/font-adobe-75dpi liberation-fontsI also have rebooted the computer.
here are some useful commands:
eselect fontconfig list
find /usr/share/ -iname 'helvet'*
fc-match Helvetica
(2) people also argue that matlab is very slow when using figures through ssh. to resolve that, one has to put two lines in /etc/X11/xorg.conf (in 'device' section), which is caused by nvidia driver.http://ifixdit.blogspot.com.au/2011/08/how-to-fix-matlab-small-figures-and.html
Option "UseEdidDpi" "false"
Option "Dpi" "92 x 92"
which i also have done in gentoo. but in ubuntu (installed in a machine using ATI cards), I do not have to do that.
No comments:
Post a Comment