Graphics Programs Reference
In-Depth Information
12
10
8
6
4
2
0
-2
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
Problem 10
Let's plot 2 x and x 4 and look for points of intersection. We plot them first
with ezplot just to get a feel for the graph.
ezplot('xˆ4'); hold on; ezplot('2ˆx'); hold off
2 x
50
45
40
35
30
25
20
15
10
5
0
6
4
2
0
2
4
6
x
Note the large vertical range. We learn from the plot that there are no points
of intersection between 2 and 6 or 6 and 2; but there are apparently two
points of intersection between 2 and 2. Let's change to plot now and focus
on the interval between 2 and 2. We'll plot the monomial dashed.
X = -2:0.1:2; plot(X, 2.ˆX); hold on; plot(X, X.ˆ4, '--');
hold off
Search WWH ::




Custom Search