0%

The tips of octave

Here is tips of octave.

1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
A = [1 2;1 4]
A = [
1 2
1 4
]
A = (A == 1)
A = [
1 0
1 0
]

A = [1 1 3;2 3 1;1 1 4]
A =

1 1 3
2 3 1
1 1 4
for i = 1:3,
A(:,i) = (A(:,i)==i);
end;

A =

1 0 1
0 0 0
1 0 0

2

请我喝杯咖啡吧~