Run Matlab in Tsubame

t2sub -l walltime=24:00:00 -W group_list=t2gBANgroup -q V -l select=8:ncpus=8:mpiprocs=8:mem=20gb -l place=scatter runMatlab.sh

HOWTO: edit citation styles for use in Mendeley

Mendeley uses the Citation Style Language v1.0 to format citations and bibliographies in our Word and OpenOffice plugins. Although we provide styles for 1000+ journals, we realize this isn’t enough for everyone. If you need to customize a citation style and are not scared of editing a little XML (it’s actually not that difficult), read on…

Default styles location
After first installing Mendeley Desktop, 15 commonly used .csl files are placed in the following location: (may differ depending on your system configuration)

Windows
C:\Program Files\Mendeley Desktop\citationStyles-1.0

GNU/Linux with Debian packages
/opt/mendeleydesktop/share/mendeleydesktop/citationStyles-1.0

Generic GNU/Linux
/citationStyles-1.0

Mac OS X
/Applications/Mendeley Desktop.app/Contents/Resources/citationStyles-1.0

Custom styles location
To search for more styles, go to the View menu and choose Citation Style -> More Styles….

These additional style files will be placed here: (may differ depending on your system configuration)

Windows Vista and Windows 7
C:\Users\\Mendeley Ltd.\Mendeley Desktop\citationStyles-1.0

Windows XP
C:\Documents and Settings\\Local Settings\Application Data\
Mendeley Ltd\Mendeley Desktop\citationStyles-1.0

GNU/Linux
~/.local/share/data/Mendeley Ltd./Mendeley Desktop/citationStyles-1.0

Mac OS X
/Users//Library/Application Support/Mendeley Desktop/
citationStyles-1.0

Tutorial: Editing an existing style
Let’s say you’re writing a paper for a new conference, where the organizers have demanded you use the “American Sociological Association” style, but using square brackets instead or parentheses for in-line citations. So instead of this:

(Andersson et al. 2004)

You need to write this:

[Andersson et al. 2004]

Step 1: Create a new style file
Locate the asa.csl file by referring to the “Default styles location” above. Copy this file to the “Custom styles location” above.

NOTE: Never edit the installed files directly, always create a copy first.

Give the file a new name, say asa_custom.csl

Open the file in your favorite text editor (for Windows, try Notepad++) and change the 4th and 5th lines from:

American Sociological Association

http://www.zotero.org/styles/asa

to:

American Sociological Association (custom)

http://www.zotero.org/styles/asa_custom

(or something of your own choosing, the important thing is to ensure the id is unique. No two styles are allowed to have the same id, as Mendeley will not be able to load one of them)

Step 2: Customize the style formatting
Don’t worry about understanding everything in the CSL files right away. For now, just know that the bit describing the format of in-line citations starts with “” and ends with “”, which is from line 120 to 130 in your asa_custom.csl file.

To change the parentheses to square brackets, change line 121 from:

to:

Save your edited style file.

Step 3: Use the new style in Mendeley
Restart Mendeley Desktop. Open a new Word or OpenOffice document and select “More Styles…” from the citation style drop-down box. In the dialog that appears you should select “American Sociological Association (custom)” and click Use this Style and then click Done.

Congratulations! You can now cite in your custom style. Here’s a short video showing the process.

To learn more about editing CSL files, check out the official guide as well as reading and experimenting with the styles included with Mendeley (but remember to create copies first as in step 1!) If you’d like more tutorials going into more depth on CSL, please drop us a comment below.

We plan to make the process of editing styles simpler in future, and to expand our database of downloadable styles.

Happy Citing!

Link: http://www.mendeley.com/blog/research-tutorials/howto-edit-citation-styles-for-use-in-mendeley/

Sua supscript –> dong 91 cua style

thanh

Split matrix into small matricess

A = your_matrix [300,25]
Mcell = mat2cell(A,repmat(30,10,1),25)

Thoi gian tinh toan trong Matlab

% 計算所要時間の表示
startT = clock();
startCpuT = cputime;
%
% 自分の計算
%
ntime=cputime-startCpuT;
nhour = floor(ntime/60/60);
nmin = floor((ntime-nhour*3600)/60);
nsec = ntime-nhour*3600-nmin*60;
disp(sprintf(‘%s%s’, ‘開始時間:’,datestr(startT,31)));
disp(sprintf(‘%s%s’, ‘終了時間:’,datestr(clock,31)));
disp(sprintf(‘%s%d%s%02d%s%04.1f%s’, ‘計算所要時間:’,nhour,’時間’,nmin,’分’,nsec,’秒’));

Link: http://sach1o.blog80.fc2.com/blog-entry-26.html

Sử dụng Tsubame

1. Đăng ký acc từ trang Portal
2. Dùng FTP để upload/download data
–> Xem mục 4.5
http://tsubame.gsic.titech.ac.jp/docs/guides/tsubame2_win/html/usage.html
4. Cài đặt Cygwin để dùng graphic:
http://tsubame.gsic.titech.ac.jp/node/360

4. Sử dụng Matlab

Click to access MATLAB.pdf