... equation.
0 1 2 3 4 5 6 7 8 9 10
−1
−0.8
−0.6
−0.4
−0.2
0
0.2
0.4
0.6
0.8
1
t
Figure 7- 7 The functions x (solid line) and y (dashed line)
that solve the system in Example 7- 2
214
MATLAB Demystifi ... 6
−4
−3
−2
−1
0
1
2
3
4
t
Figure 7- 11 Reworking Example 7- 2 by setting the initial condition to y(0) = y′(0) = 1
198
MATLAB Demystifi ed
(leaving out the constant of integratio...
... () ln .1 0 577 215
0
etdt
t
γ
K
THE GAMMA FUNCTION IN MATLAB
The gamma function of n can be accessed in MATLAB by writing:
x = gamma(n)
For example, Γ(6) = 5! = 120 Checking this in MATLAB:
>> ... is a functional relationship between the two.
Age Max Weight
15 330
17 370
18 405
19 420
24 550
30 580
35 600
37 580
1. Use MATLAB to find the coefficients m and b for a first or...
... bank.
Examine the high frequency subband for evidence of the discontinuity.
% Example 7. 5 and Figures 7. 10 and 7. 11. Discontinuity detection
% Construct a waveform of 2 sinusoids with a discontinuity
% ... illustrated in the lower
half of Figure 7. 12. This will lead to 8 output segments that are stored sequen-
tially in the output vector,
a
.
% Example 7. 5 and Figure 7. 13
% Exampl...
... directors of a company may declare a divi-
10288$ CH16 08-29-03 08:31: 37 PS
120
Accounting Demystified
MTWThF
1234
78 91011
14 15 16 17 18
21 22 23 24 25
28 29 30 31
The amount of payroll that should ... Figure 17- 4.
If there are numerous items, there should be a separate
section for each category, as shown in Figure 17- 5.
When you add other income to operating income and sub-
10288$...
... 178
CHAPTER 7 Numerical Solution of ODEs 179
Solving First Order Equations with ODE23
and ODE45 179
Solving Second Order Equations 188
Quiz 196
CHAPTER 8 Integration 1 97
The Int Command 1 97
Defi ... of
433.12 multiplied by 15 .7. We type 433.12 * 15 .7 at the MATLAB prompt and hit
the enter key. The result looks like this:
>> 433.12*15 .7
ans =
6.8000e+003
MATLAB spits...
... set(h,'ShowText','on','TextStep',get(h,'LevelStep')*2)
This time, MATLAB puts labels on each curve, as shown in Figure 3-38.
Figure 3- 37 A contour plot of z = x
2
+ y
2
CHAPTER 3 Plotting and Graphics
75
Now we enter the function ... in Figure 3- 17.
At this point you should have a handle on the basics needed to generate plots in
MATLAB. Now le...