Graphics Programs Reference
In-Depth Information
(b)
ezplot('sin(1/xˆ2)', [-2 2])
sin(1/x 2 )
1
0.8
0.6
0.4
0.2
0
-0.2
-0.4
-0.6
-0.8
-1
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
x
X = -2:0.1:2;
plot(X, sin(1./X.ˆ2))
Warning: Divide by zero.
1
0.8
0.6
0.4
0.2
0
-0.2
-0.4
-0.6
-0.8
-1
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
This picture is incomplete. Let's see what happens if we refine the mesh.
X = -2:0.01:2; plot(X, sin(1./X.ˆ2))
Warning: Divide by zero.
 
Search WWH ::




Custom Search