LaTeX2matlab
-
Upload
chelseastamfordbridge -
Category
Documents
-
view
214 -
download
0
Transcript of LaTeX2matlab
-
8/13/2019 LaTeX2matlab
1/8
!!! My first LaTeX document !!!
Sridhar
June 19, 2012
1
-
8/13/2019 LaTeX2matlab
2/8
1 Figure Formatting
4 2 0 2 41
0.8
0.6
0.4
0.2
0
0.2
0.4
0.6
0.8
1
Text willbe removed
data1
data2
data3
data4
data5
Figure 1: Graph to be used throughout the document
2 Figure Formatting:psfrag
4 2 0 2 41
0.8
0.6
0.4
0.2
0
0.2
0.4
0.6
0.8
1
data1data2
data3
data4
data5
Text replaced by psfrag
Figure 2: Child graph with text replaced
2
-
8/13/2019 LaTeX2matlab
3/8
3 Figure Formatting:subgraphs
4 3 2 1 0 1 2 3 41
0.8
0.6
0.4
0.2
0
0.2
0.4
0.6
0.8
1
(a) Subfigure 1 :Parent Graph
4 2 0 2 41
0.8
0.6
0.4
0.2
0
0.2
0.4
0.6
0.8
1
data1
data2
data3
data4
data5
(b) Subfigure 2 :Child graph before adding text
3
-
8/13/2019 LaTeX2matlab
4/8
4 Text formatting:Color 1
First line of pageColor changes from red to default color,now background changes. 2Background color of text is orange . Now let us write a few formulae. 3
5 Equation 4
10
n=1n= 1 + 2 + + n (1)
5
0 ex dx= 1 (2)
6
6 Text formatting:ulem package 7
Myfirst useofpackageulem //////////However//////this/////will/////not////be/////the//////last. 8This package supports single and double line underlining and also 9
wavy
underling
along
with //////////striking//////over//////text 10
7 Text formatting:enumerate package 11
A-1 There are certain
functions for which 12when limit extends to infinity they become zero 13
A-2 The following are a few examples 14
examplea)
limx 1/x= 0 (3)
exampleb)
0 ex dx= 1 (4)
4
-
8/13/2019 LaTeX2matlab
5/8
8
TextFormatting::Landscape
1
8.1
SingleUnderlinedText
2
Thistexthasbeenprintedusinglscapepackage.
Ithasfurtherbeenusedwithulemp
ackagetoproduceSingleUnder
linedtext.
3 4
8.2
DoubleUnder
linedText
5
Thistexthasbeenprintedusinglscapepackage.
Ithasfurtherbeenusedwithulemp
ackagetoproduceDoubleUnderlinedtext.
6 7
8.3
WaveUnderlinedText
8
This
text
has
been
printed
using
lscape
package
.It
has
further
been
used
with
ulem
p
ackage
to
produce
Wave
Underlined
text.
910
8.4
CrossedoutT
ext
11
///////
This/////text//////has//////
been//////////
printed////////
using////////
lscape///////////
package//.///It/////
has//////////
further//////
been///////
used///////
with//////
ulem///////////
p
ackage////to///////////
produce//////////
Crossed/////out///////
text.
12
13
5
-
8/13/2019 LaTeX2matlab
6/8
9 Graph Paper 1
0 5 10 15 20 25 30 35 40
-10
-5
0
5
10
2
10 Post Script:2DPlotting 3
1
2
3
1
2
3
1 2 3 4 5 6123456x
y
y= cos x y = sin x y= sin
x
2
y= cos x2
4
6
-
8/13/2019 LaTeX2matlab
7/8
11 Post Script: 3D plotting 32
x y
z
12
34
-1
12
34
-1
1
2
3
4
-1
33
12 Post Script:Euclidean Figures 34
1
2
3
4
1
2
3
4
1 2 3 4 5 6123456
A
B
C
O
35
7
-
8/13/2019 LaTeX2matlab
8/8
13 Post Script:PS-Tricksadd 36
13.1 Color-Blind Circle 37
38
13.2 Pie-Chart:India Sectorwise Power Generation 39
Coal
HydroGas Nuclear
Wind
Other
40
8