Matlab LaTeX Figures
Matlab LaTeX Figures
Matlab LaTeX Figures
A
T
E
X for Quality
Publications
Azad Ghaari
Cymer Center for Control Systems and Dynamics - UC San Diego
Second Edition, January 2014
Image formats: Vector vs. Raster
Raster graphics or bitmap
High resolution
Use L
A
T
E
X command
\includegraphics[width=2.5in]{sin1}
Problems:
Correction needed:
Axes limits
t
Ex. 7
3
0
0
3
0
0
3
5
0
3
5
0
3
5
0
350
350
380
3
8
0
3
8
0
3
8
0
400
4
0
0
4
0
0
4
2
0
420
4
3
0
430
4
4
0
4
4
5
D
2
(
%
)
D
1
(%)
40 45 50 55 60 65 70
40
45
50
55
60
65
70
Ex. 8
0 2 4 6 8 10 12
0
50
100
150
200
T
u
r
b
i
n
e
p
o
w
e
r
,
P
t
(
k
W
)
Turbine speed,
t
(rad/s)
P
t
= C
p
P
w
V
w
= 7 m/s
V
w
= 9
V
w
= 11
V
w
= 13
Export Simulink models (Not for publication)
Time consuming
= v/c = tanh
t
H
B
(q) N[] H
C
(q)
u(k) y(k) x
B
(k) x
C
(k)
Diagrams in L
A
T
E
X L
A
T
E
XCAD package
Generates a L
A
T
E
X compatible .tex output
s
s+
h
l
s+
l
+
K
s
x = f(x, (x, ))
l
s+
l
y
z = y
y = h(x)
G
S(t)
N(t)
M(t)
=
r
r
Diagrams in L
A
T
E
X L
A
T
E
XCAD package
PV
21
PV
12
PV
1n
PV
2n
PV
mn
+
PV
22
PV
m2
PV
11
I
1
I
m
T
11
, S
11
T
12
, S
12
T
1n
, S
1n
T
21
, S
21
T
22
, S
22
T
2n
, S
2n
T
m1
, S
m1
T
m2
, S
m2
T
mn
, S
mn
DC Bus
I
dc
I
2
V
dc
PV
m1
Diagrams in L
A
T
E
X L
A
T
E
XCAD package
PV
21
PV
12
PV
1n
PV
2n
PV
mn
+
PV
22
PV
m2
PV
11
I
1
I
m
T
11
, S
11
T
12
, S
12
T
1n
, S
1n
T
21
, S
21
T
22
, S
22
T
2n
, S
2n
T
m1
, S
m1
T
m2
, S
m2
T
mn
, S
mn
DC Bus
I
dc
I
2
V
dc
PV
m1
Multivariable ES D
V
dc
I
dc
d
11
d
12
d
1n
d
21
d
22
d
2n
d
m1
d
m2
d
mn
Diagrams in L
A
T
E
X TikZ and PGF packages
Very sophisticated
I
dc
I
grid
AC grid
P
=
V
d
c
I
d
c
M
u
l
t
i
v
a
r
i
a
b
l
e
M
P
P
T
Diagrams in L
A
T
E
X TikZ and PGF packages
+
D
1
DC/DC V
1
PV
1
P
1
D
2
DC/DC V
2
PV
2
P
2
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
D
n
DC/DC V
n
PV
n
P
n
High-pass
lter
Low-pass
lter
M(t) S(t)
K
s
N(t)
Low-pass
lter
=
H
G
[(T
1
, S
1
), , (T
n
, S
n
)]
T
P = V
dc
I
dc
D
G
D
Diagrams in L
A
T
E
X TikZ and PGF packages
v
a
v
b
v
c
IG
S
aA
S
bA
S
cA
S
aB
S
bB
S
cB
S
aC
S
bC
S
cC
v
A
v
B
v
C
N
Wind turbine
Shaft and gearbox
Generator
Matrix converter AC grid
Wind speed = V
w
Blade pitch angle =
Turbine speed =
t
B
K
s
T
u
r
b
i
n
e
i
n
e
r
t
i
a
=
J
t
G
e
a
r
b
o
x
r
a
t
i
o
=
n
R
o
t
o
r
i
n
e
r
t
i
a
=
J
Input frequency =
i
Output frequency =
o
R
o
t
o
r
f
r
e
q
u
e
n
c
y
=
r
P
o
l
e
p
a
i
r
s
=
p
R
o
t
o
r
s
p
e
e
d
=
r
p
Electrical circuits in L
A
T
E
X CrcuitTikZ package
C
1
IRF640
IR2127
MUR2020
L
1
I
L1
C
I
C1
r
C1
I
1
I
o1
+
V
1
+
V
o1
LA 25-NP
PV
1
(T
1
, S
1
)
C
2
IRF640
IR2127
MUR2020
L
2
I
L2
C
2
I
C2
r
C2
I
2
I
o2
+
V
2
+
V
o2
LA 25-NP
PV
2
(T
2
, S
2
)
E
l
e
c
t
r
o
n
i
c
l
o
a
d
+
V
d
c
=
5
V
I
dc
V
dc
V
o2
I
C2
I
L2
ADC
7
ADC
8
ADC
6
ADC
5
PWM
2
PWM
1
DS1104
MPPT
How to convert L
A
T
E
X-produced gures into .eps
Replace X1 Y1 X2 Y2 with Ax Ay Bx By
damiano/Matlab/HowToMakePrettyFiguresWithMatlab.pdf
Version 8, 2010.
Yair Moshe,
Advanced Matlab Graphics and GUI,
http://sipl.technion.ac.il/new/Download/Matlab_Support/Matlab_Guides/Graphics%20and%20GUI
%20using%20Matlab.pdf
November, 2010.
Richard E. Turner, Umesh Rajashekar
Publication quality gures using Matlab,
http://www.gatsby.ucl.ac.uk/
turner/TeaTalks/matlabFigs/matlabFig.pdf
June, 2011.
Jerey D. Hein,
Creating .eps gures using TikZ,
http://heinjd.wordpress.com/2010/04/28/creating-eps-figures-using-tikz/
April, 2010.