Index



How To Use The Matlab Server

1. login on 192.168.2.2 using winscp

[DOWNLOAD : WinSCP =>Installation package]

2. upload your source files to the server

3. search a server IP that is not used matlab by other users on http://sndst.snd.elec.keio.ac.jp/php/server_state.php.

4.login on the machine which IP you searched on step 3 using TeraTerm.

[DOWNLOAD : TeraTerm =>download]

5.change directory which source codes are exist.

6.type "screen"

7.type "matlab"

8.type file name for run

9.you have to detach screen
type "Ctrl A + D"
now you can exit TeraTerm.

10.when the program stopped, login the machine and
type "screen -r"
and exit matlab

BACK



How To Send A Mail

<プログラムコード例>

%% ------------------------メール設定------------------------------
setpref( 'Internet', 'SMTP_Server', 'snd.elec.keio.ac.jp');
setpref( 'Internet', 'SMTP_Username', 'ユーザ名'); %入力箇所
setpref( 'Internet', 'SMTP_Password', 'パスワード'); %入力箇所
setpref('Internet', 'E_mail', 'ユーザ名@snd.elec.keio.ac.jp'); %入力箇所

%% -----------ここにプログラムを入れてください------------------------
tic;
Main_Program()

%% ------------------メール送信内容設定-----------------------------
endtime=toc;
htime=floor(endtime/60/60);
mtime=floor((endtime-htime*60*60)/60);
stime=endtime-(htime*60+mtime)*60;
disp(['endtime = ' num2str(htime) ': ' num2str(mtime) ': ' num2str(stime)]);
logdate=fix(clock);

%% -----------------メール送信-------------------------------------
SEND_MAIL = 1;
if (SEND_MAIL == 1), %↓入力箇所
sendmail('送信先アドレス','[SND MATLAB SERV.] Program Finished!',['MATLAB program has been successfully finished.' sprintf('\n\ntermination time :\n') num2str(logdate(1)) '/' num2str(logdate(2)) '/' num2str(logdate(3)) ' ' num2str(logdate(4)) ':' num2str(logdate(5)) ':' num2str(logdate(6)) sprintf('\n\ntic-toc:\n') num2str(htime) ':' num2str(mtime) ':' num2str(stime) sprintf('\n\ndirectory:\n') num2str(pwd)]);
end


BACK