summaryrefslogtreecommitdiffstats
path: root/lectures/lec02_matlab1
blob: 53a8ac382fa5f5be1a754eb05479d4e6ec2b3401 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

'format compact' => less syntax

self assess:
    C) 13x4
    E) vertcat; different columns

### julia notes:

built-in types seem to default to just an array instead of, eg, 3x1 or 1x3.

can transform with "'"; A'' != A?

to vert/horiz cat, need to explicitly 

julia> size([1,2,3])
(3,)

julia> size([1,2,3]')
(1,3)

julia> size([1,2,3]'')
(3,1)