Lecture 5
コンピュータその51
1. MATLAB
Tuesday, November 1, 16
2
MATLAB tutorial
1.
プロンプトワークスペースWorking directory
Matrix Laboratoryインタプリタ形式の高性能なテクニカルコンピューティング言語
Tuesday, November 1, 16
3
>> 5+5
プロンプト
MATLAB tutorial
Tuesday, November 1, 16
4
>> x = 5+5;
プロンプト
MATLAB tutorial
>> x
>> sin(x) % this is a comment
1.
2.
3.
>> edit matlab_introduction.m4.
Tuesday, November 1, 16
5
The MATLAB editor
Tuesday, November 1, 16
6
The MATLAB editor
>> matlab_introduction2.
プロンプト
Tuesday, November 1, 16
7
MATLAB control structures
>> matlab_introduction3.
?
プロンプト
Tuesday, November 1, 16
8
MATLAB control structures
>> matlab_introduction4.
?
プロンプト
Tuesday, November 1, 16
9
MATLAB control structures
>> matlab_introduction5.
?
プロンプト
Tuesday, November 1, 16
10
MATLAB 配列(arrays)
>> matlab_introduction6.
?
プロンプト
Tuesday, November 1, 16
11
MATLAB functions
>> matlab_introduction7.
?
プロンプト
Tuesday, November 1, 16
12
MATLAB functions
>> matlab_introduction8.
?
プロンプト
Tuesday, November 1, 16
13
Brownian motion (random walk in 1d)
??????
Hint: >> rand
9.
Tuesday, November 1, 16
14
Brownian motion (random walk in 2d)
??????
??????
10.
Tuesday, November 1, 16