Matlab For Engineering Berardino Dacunto Download
Matlab For Engineering Berardino Dacunto Download
download
https://ebookbell.com/product/matlab-for-engineering-berardino-
dacunto-48710470
https://ebookbell.com/product/matlab-for-engineering-
applications-5e-ise-5thise-william-j-palm-iii-46562738
https://ebookbell.com/product/matlab-for-engineering-applications-5th-
edition-william-palm-46651690
Matlab For Engineering And The Life Sciences 2nd Edition Joe
Tranquillo
https://ebookbell.com/product/matlab-for-engineering-and-the-life-
sciences-2nd-edition-joe-tranquillo-49437374
Matlab For Engineering And The Life Sciences 1st Edition Joseph V
Tranquillo
https://ebookbell.com/product/matlab-for-engineering-and-the-life-
sciences-1st-edition-joseph-v-tranquillo-4588060
Matlab For Engineering Applications 4th Edition William J Palm Iii
https://ebookbell.com/product/matlab-for-engineering-applications-4th-
edition-william-j-palm-iii-10472982
https://ebookbell.com/product/matlab-for-engineering-dacunto-
berardino-232616738
https://ebookbell.com/product/solution-manual-matlab-for-engineering-
applications-4th-edition-william-palm-iii-48700276
https://ebookbell.com/product/octave-and-matlab-for-engineering-
applications-andreas-stahel-43364816
https://ebookbell.com/product/matlab-for-electrical-and-computer-
engineering-students-and-professionals-with-simulink-roland-
priemer-6838280
12380_9789811240669_TP.indd 1 9/7/21 9:15 AM
B1948 Governing Asia
For photocopying of material in this volume, please pay a copying fee through the Copyright Clearance
Center, Inc., 222 Rosewood Drive, Danvers, MA 01923, USA. In this case permission to photocopy
is not required from the publisher.
Printed in Singapore
Preface
v
B1948 Governing Asia
Contents
Preface v
Chapter 1. Function Files 1
1.1 Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1.1 Creating Matrices . . . . . . . . . . . . . . . . . . 1
1.1.2 Matrix Indexing . . . . . . . . . . . . . . . . . . . 2
1.1.3 Matrix Manipulation . . . . . . . . . . . . . . . . 4
1.1.4 Tridiagonal Matrices . . . . . . . . . . . . . . . . . 6
1.1.5 Matrix Operations . . . . . . . . . . . . . . . . . . 8
1.1.6 Right and Left Divisions . . . . . . . . . . . . . . 9
1.2 Script Files . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.2.1 For Loop . . . . . . . . . . . . . . . . . . . . . . . 10
1.2.2 Examples of Script Files . . . . . . . . . . . . . . 11
1.3 Introduction to Function Files . . . . . . . . . . . . . . . . 15
1.3.1 Structure of Function Files . . . . . . . . . . . . . 15
1.3.2 Function with a Multiple Output Variable . . . . 17
1.3.3 Flow Control Structures . . . . . . . . . . . . . . . 19
1.3.4 Local Functions, Anonymous Functions . . . . . . 25
1.3.5 Logical Operators and Logical Functions . . . . . 27
1.4 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
vii
September 8, 2021 11:37 Matlab for Engineering 9in x 6in b4335-FM page viii
Contents ix
Bibliography 311
Index 313
B1948 Governing Asia
Chapter 1
Function Files
1.1 Matrices
1.1.1 Creating Matrices
The command
A = [1 2 3; 4 -5 6; 7 8 -9]
creates the matrix
⎡ ⎤
1 2 3
⎣
A= 4 −5 6 ⎦.
7 8 −9
1
September 8, 2021 11:25 Matlab for Engineering 9in x 6in b4335-ch01 page 2
rv = [10 11 12 13]
[4 − 5 16],
September 8, 2021 11:25 Matlab for Engineering 9in x 6in b4335-ch01 page 3
Function Files 3
x = [0 2 4 6 8 10].
The same vector is generated with the x = 0:2:10 command, where the
initial value, step and final value are specified. Step 1 can be omitted. For
example, the command
y = 0:10
produces
y = [0 1 2 3 4 5 6 7 8 9 10].
September 8, 2021 11:25 Matlab for Engineering 9in x 6in b4335-ch01 page 4
The v(end) command returns the last element of the vector v. For example,
the command
y(end)
returns 10. This command can be useful when a vector is crested dynam-
ically during the program execution and the vector length is not known a
priori.
The A(i,:) = [ ] command deletes the i-th row of the matrix A.
For example, the A(3,:) = [ ] command deletes the third row and the
A([1 3],:) = [ ] command deletes the first and third rows. More generally,
the A(i:h,:) = [ ] command, where i ≤ h, deletes the rows from i to h.
This is similar for columns. The previous command can be used in other
situations. See Exercise 1.4.3.
Function Files 5
B = reshape(A,3,2)
produces the 3-by-2 matrix
⎡
⎤
1 4
B = ⎣2 5⎦.
3 6
The A(:) command reshapes the matrix A into a column vector. For
example, the command
v = A(:)
returns the original vector u. The reader is asked to do Exercise 1.4.5.
Function Files 7
produce
5 5 5 5
A= ,u = 5 5 5 , v = ,
5 5 5 5
22 2 22 67
, .
67 20 2 20
Of course, it results in
(A ∗ B) = B ∗ A ,
Function Files 9
the command
u*v
produces −4. A matrix A can be multiplied with a scalar a with the B =
A * a command. This operation produces the matrix Bij = Aij a = aAij .
Therefore, it is A * a = a * A. Moreover, in Matlab, an original element-by-
element product between two same size matrices can be generated. The C =
A.*B command creates the matrix C given by Cij = Aij Bij . For example,
if A and B are the matrices defined beforehand, then the commands
A’.*B
A.*B’
produce the following matrices
⎡ ⎤
7 32
⎣ 18 7 18 −3
0 ⎦, .
32 0 −12
−3 −12
3.0000 −2.0000
.
2.0000 −1.0000
September 8, 2021 11:25 Matlab for Engineering 9in x 6in b4335-ch01 page 10
The command works with scalar variables too. For example, if a and b are
the variables defined beforehand, then the command
a\b
returns 0.5000. The left division is used to solve the algebraic linear systems
Ax = b. The unknown vector x is found by the simple A\b command. See
Exercise 1.4.10. Moreover, Matlab allows element-by-element left and right
divisions: A./B and A.\B. See Exercise 1.4.11.
Function Files 11
For loop
for variable = expression
code lines
end
t=5
1
sin x cos t
0.8
0.6
0.4
0.2
u 0
-0.2
-0.4
-0.6
-0.8
-1
0 0.5 1 1.5 x 2 2.5 3
∂ 2u ∂ 2 u
− 2 = 0, (1.2.2)
∂t2 ∂x
and verifies the initial-boundary conditions
[1] Any word following the % sign is a note, a comment, and is ignored
by Matlab.
[2] The clc command cleans the Command Window. Information on a
command is obtained by writing help name of command. The reader
is invited to take a look at See also where further commands are
suggested.
[3] Note the final semi-colon. The value of this variable is saved, but not
printed in the Command Window.
September 8, 2021 11:25 Matlab for Engineering 9in x 6in b4335-ch01 page 13
Function Files 13
1
0.8
0.6
u
0.4
0.2
0
0.4
t 0.3 0.8 1
0.2 0.6 x
0.1 0.4
0.2
0 0
Example 1.2.2 The following script file produces 2D and 3D plots of the
function (Fig. 1.2.2),
% Initialization
L = 1; nx = 20; x = linspace(0, L, nx+1);
time = .4; nt = 40; t = linspace(0, time, nt+1);
u = zeros(nx+1, nt+1);
% 2D Plot
for j = 1:nt+1
u(:,j)= sin(pi*x’)*exp(-pi^2*t(j));
plot(x,u(:,j));
September 8, 2021 11:25 Matlab for Engineering 9in x 6in b4335-ch01 page 15
Function Files 15
axis([0 L 0 1]);
xlabel(’x’); ylabel(’u’);
legend(’sin(pi x) *exp(-pi^2 t)’);
title([’t = ’, num2str(t(j))]);
pause(.1);
end
% 3D Plot
pause;
% The pause command stops the execution. Press any key to continue.
figure(2);
surf(x,t,u’)
xlabel(’x’); ylabel(’t’); zlabel(’u’);
% Print
disp(u’);
Function
function [output] = name of function (input)
% comments
code lines
end
y = x.*x; %......[5]
end
————————– Notes ——————————–
[1] The square brackets are optional when the output consists of one
variable, as in this example, or when there is no output variable.
The square brackets are necessary for a multiple output variable. The
function can be called with a different variable name and the result can
be assigned to variables that have different names. In addition, the file
name where the function is saved must be the same as the function
name.
[2] First line of comment. The comment lines are printed when the user
types “help sqr” at the command line. See Exercise 1.4.14.
[3] Second line of comment.
[4] Third line of comment.
[5] Function body. All variables used here, as well as in the function
definition, are local and private. See Remark 1.3.1.
The simplest way to call the sqr function is without any output. For
example, the sqr(2) and sqr([1 2]) commands return
4 and 1 4,
respectively. The sqr(1,2) command generates an error since the sqr function
must be called with one input variable. If the function output has to be used,
then the complete syntax must be considered. For example, the command
z = sqr(2);
assigns the value 4 to the variable z that can be used in other statements.
Function Files 17
the function execution will stop at the code line b = 10;, where there is
the disk. The Prompt changes to K>> since we are in the Debug phase.
Inspect the variable a by typing a followed by Enter. You may see a = 0.
Continue the function execution by pressing the Continue button. You will
obtain the result ans = 81. Now, inspect the variable a again and note that
a = 1. All this emphasizes the local and private character of the variables
defined in the function body. Before executing the function, the value of
a was 1. During the execution, it was a = 0. After the execution, it was
a = 1. The variables defined in the function body cannot interfere with the
variables defined in the external world and vice versa. Moreover, we also
learned how to inspect some variables during the Debug phase. Finally,
delete the new variables added in the function.
0.4
0.3
0.2
0.1
y
0
-0.1
-0.2
-0.3
0 0.2 0.4 x 0.6 0.8 1
Example 1.3.3 A way to call the heat flux function is illustrated in the
following listing. The heat flux vector is plotted (Fig. 1.3.1) and printed.
Function Files 19
output would be wrong. Therefore, data analysis and flow control of the
code are indispensable. This topic is discussed in the next section. In the
same section, we will provide a modified version of the heat flux function
that is capable of eliminating the problem outlined above.
If-elseif-else
if logical condition
code lines
elseif logical condition
code lines
else
code lines
end
Special cases include the following: if, if-else, and if-elseif, see below. In
addition, all cases can be nested.
As the first application, the heat flux function is suitably modified and
the problem outlined in Remark 1.3.2 is eliminated.
Example 1.3.4 When the function has no output, the function definition
can be simplified, as in the following listing.
function if 1(i)
% This is the function file if 1.m. It is an application on if-elseif-else.
% Note the simplified function definition. It could also be written:
% function [ ] = if 1(i). Call the function by passing 0 or 1 as an argument.
Relational operators
== equal to
˜= not equal to
< less than
<= less than or equal to
> greater than
>= greater than or equal to
September 8, 2021 11:25 Matlab for Engineering 9in x 6in b4335-ch01 page 21
Function Files 21
If the code flow has a choice of many possibilities, using if may make
the program slower. Matlab provides a more efficient command for these
situations: the switch structure. Its syntax is outlined below.
Switch
switch expression
case value 1
code group 1
case value 2
code group 2
...
case value n
code group n
otherwise
last code group
end
Function Files 23
c = ’k’;
case ’blue’
c = ’b’;
otherwise
c = ’b’;
str = upper(color name);
% The upper function converts color name passed by the user
% to capital letters.
disp(strcat(str,’ color unavailable. Replaced with blue.’));
% The strcat function concatenates the dynamic string str and the
% static string ’color ... blue’. The disp function shows the
% complete message to the user.
end
plot(x,sin(x),c);
end
plot(x,sin(x),c);
end
Matlab provides two commands for loops: for and while. The for loop
was introduced in Sec. 1.2.1. Now, the while loop is presented. Its syntax is
outlined below.
While loop
while condition
code lines
end
First, condition is evaluated. If it is true, the code lines are executed and
condition is evaluated again. The process is repeated infinitely until condition
becomes false. If condition is initially false, code lines are never executed.
Applications on a while loop are provided in Examples 1.3.8 and 1.3.9, and
Exercises 1.4.17 and 1.4.18.
i = 0; a = 10;
while i < a
i = i + 1;
disp(i);
end
Executing the file yields
1
2
...
10.
The break command forces the program to exit from the while loop, even
if condition is true. For example, insert the following code just before end
and guess what happens. However, using a break is not recommended.
if i == 6
break;
end
September 8, 2021 11:25 Matlab for Engineering 9in x 6in b4335-ch01 page 25
Function Files 25
y = 0; i = 1;
c = isspace(str); %......[1]
while i<= length(c)
if c(i)>0
y = y + 1;
end
i = i + 1;
end
end
% characters in the input string different from spaces. For example, the
% command
% ns = local function(’I am from Naples’)
% produces
% ns = 13.
c = isspace(str);
s = GetSpaces(c);
y = length(c) - s;
end
———- Local function ——————–
% The local function GetSpaces returns the number of spaces.
function s = GetSpaces(c)
s = 0;
for i=1:length(c)
if c(i) > 0
s = s + 1;
end
end
end
The anonymous functions are a powerful tool provided by Matlab to
define simple functions. The syntax is outlined below.
Anonymous function
function name = @(arg1, arg2,...) function expression
As noted, the function name is followed from the = sign, the @ sign
that characterizes the anonymous functions, and the input variables in
parentheses. Next, after some spaces, the function expression. A simple
example of an anonymous function is the following
f = @(x) x + 2;
that defines the function f (x) = x + 2, where x can be an array. After
defining f , the command
feval(f,3)
evaluates f for x = 3 and produces
5.
September 8, 2021 11:25 Matlab for Engineering 9in x 6in b4335-ch01 page 27
Function Files 27
Logical operators
& Logical AND
| Logical OR
˜ Logical NOT
The first two operators work with at least two operands. The third operator
needs one operand. In logical expressions related to scalar variables, the
following symbols must be used: && and ||, instead of & and |.
Logical AND evaluates the truth or falseness of the operands and
returns true if all operands are true; otherwise it returns false. For example,
the expression
a > 0 && b > 0 && c > 0
returns 1 (true) if a, b and c are strictly positive scalar variables and 0
(false) if at least one is less than or equal to zero. For example, if a, b and
c were initialized as
a = 1; b = -1; c = pi;
then the expressions
a > 0 && b > 0
c > 0 && b > 0
a > 0 && b > 0 && c > 0
return
0
and the expression
a > 0 && c > 0
returns
1.
September 8, 2021 11:25 Matlab for Engineering 9in x 6in b4335-ch01 page 28
Note that in Matlab, false is expressed by “0” and true is expressed by “1”
or, more generally, any nonzero value. Therefore, the expression
a && b && c
returns
1.
The expression
a-b>0
returns
1
since it is true and the expression
a-c>0
returns
0
since it is false. See Exercises 1.4.1 to 1.4.21. If the operands are vectors
of the same length, each element of a vector is evaluated with the
corresponding elements of the other vectors and a same length vector of
zeros and ones is returned. For example, after creating the vectors
u = [0 1 3]; v = [-1 0 1]; z = [-3 -1 0];
the expression
u&v&z
returns
0 0 0.
If a is a scalar, for example,
a = 1;
then the expression
a&u
returns
0 1 1
since Matlab evaluates the scalar with each element of u. If the operands are
matrices of the same size, a same size matrix of zeros and ones is returned.
For example, after creating the matrices
A = [0 1 3; 4 5 6]; B = [-1 0 1; -3 -2 0];
the expression
A&B
September 8, 2021 11:25 Matlab for Engineering 9in x 6in b4335-ch01 page 29
Function Files 29
returns
0 0 1
1 1 0
The logical operator & is frequently used in if-else and while structures. For
example,
if a >= 0 && b < 0
code lines
end
and “true” if the operand is “false”. For example, after creating the
vector v
v = [-1 0 1];
the expression
~v
returns
0 1 0.
Matlab provides logical functions too. Some of them — all, any, find
and ismember — will be presented in this section. If u is a vector, the logical
function
all(u)
returns “1” if all the elements of u are different from zero, otherwise it
returns “0”. For example, after creating the vectors
u = [0 1 2]; v = [1 2 3];
the command
all(u)
returns
0
and the command
all(v)
returns
1.
If A is a matrix, the command
all(A)
evaluates the column vectors of A and returns a row vector of zeros and
ones with a length equal to the number of columns of A. For example, after
creating the matrix
A = [0 1 2; 1 2 3];
calling
all(A)
returns
0 1 1.
September 8, 2021 11:25 Matlab for Engineering 9in x 6in b4335-ch01 page 31
Function Files 31
The function can also be called with an optional argument: all(A,n). In this
case, the function evaluates according to the dimension specified by n. For
example, the command
all(A,1)
evaluates according to the first dimension (row) and considers the columns
as vectors. The result is the same as all(A). The command
all(A,2)
evaluates according to the second dimension (column) and considers the
rows as vectors. It returns
0
1.
the command
[ri ci] = find(A == 0)
produces
ri =
1
2
ci =
1
2
since A(1,1) = 0 and A(2,2) = 0. The command
[ri ci] = find(A)
returns the indices of the nonzero elements of A. In addition, the command
[ri ci vs] = find(A)
also returns the vector vs containing the values of nonzero elements of A. For
example, if A is the matrix created beforehand, then the previous command
returns
ri =
2
1
ci =
1
2
vs =
-4
3.
Function Files 33
produces
1 0
0 1
and the command
ismember(A,A)
returns
1 1
1 1.
1.4 Exercises
Exercise 1.4.2 Extract the submatrix formed by the first, second, third
and fifth rows from the matrix A, created in Exercise 1.4.1.
Hint. Clearly, the A([1 2 3 5],:) command works. However, it is not the most
efficient when we consider a matrix with 4,000 rows and want to extract
the submatrix formed by the first 2,000 rows and the last one. The reader
is asked to find a more efficient command.
Exercise 1.4.3 Delete the first, second, third and fifth rows of matrix A.
Exercise 1.4.10 Consider the three-hinged arch in Fig. 1.4.1 (left). Use
the left division to calculate the constraint reactions. Assume: F = 4N , q =
2N/m and L = 4m. Use the free body diagram (or the Lagrangian model),
e.g., D’Acunto and Massarotti (2016), illustrated in Fig. 1.4.1 (right).
September 8, 2021 11:25 Matlab for Engineering 9in x 6in b4335-ch01 page 35
Function Files 35
q qL X3 X3 qL
F F
B X4 X4
L
A C X1 X5
X2 X6
Figure 1.4.1. Three-hinged arch (left) and free body diagram (right).
Hint.
⎡ ⎤⎡ ⎤ ⎡ ⎤
F + X1 − X3 = 0 1 0 −1 0 0 0 X1 −4
X2 + X4 − qL = 0 ⎢0 1 0 1 0 0⎥ ⎢ ⎥ ⎢ ⎥
⎢ ⎥ ⎢ X2 ⎥ ⎢ 8 ⎥
⎢ ⎥⎢ ⎥ ⎢ ⎥
qL2 /2 + LX1 − LX2 = 0 ⎢4 −4 0 0 0 0⎥ ⎢ X3 ⎥ ⎢ −32 ⎥
⇔⎢ ⎥⎢ ⎥=⎢ ⎥.
X3 − X5 = 0 ⎢0 0 1 0 −1 0⎥ ⎢ X4 ⎥ ⎢ 0 ⎥
⎢ ⎥⎢ ⎥ ⎢ ⎥
X6 − X4 − qL = 0 ⎣0 0 0 −1 0 1⎦ ⎣ X5 ⎦ ⎣ 8 ⎦
LX6 − LX5 − qL2 /2 = 0 0 0 0 0 −4 4 X6 16
Exercise 1.4.14 Type help sqr at the command line and press Enter.
Exercise 1.4.16 Call the following function. The function output is shown
in Fig. 1.4.2.
September 8, 2021 11:25 Matlab for Engineering 9in x 6in b4335-ch01 page 36
1
0.8
0.6
0.4
0.2
0
-0.2
-0.4
-0.6
-0.8
-1
-4 -3 -2 -1 0 1 2 3 4
function if 2(i)
% This is the function file if 2.m.
x1 = -pi; x2 = pi; nx = 20; x = linspace(x1,x2,nx+1);
c = ’b’;
if i == 0
c = ’g’;
elseif i == 1
c = ’r’;
end
plot(x,sin(x),c);
end
Exercise 1.4.17 Try to guess the value of y after executing the following
file.
% This is the script file while 3.m. It is an exercise on the while loop.
y = 2;
while y > 2
y = y - 1;
disp(y);
end
Exercise 1.4.18 Replace while with for in the function while 2, see
Example 1.3.9.
September 8, 2021 11:25 Matlab for Engineering 9in x 6in b4335-ch01 page 37
Function Files 37
Answer.
% This is the script file logical 1.m. It is an exercise on logical operators.
L = 2; n =101; i1 = 31; i2 = 61;
x = linspace(0,L,n); x1 = x(i1); x2 = x(i2);
u(1:n) = (x(1:n) - x1 > 0).*(x2 - x(1:n) > 0);
plot(x,u);
axis(’equal’);
a = 1; L = 2; b = 0; T = 3; n = 10;
if a <= 0 || L <= 0 || T <= 0 || n <= 2
b = 1;
end
disp(b);
What is the value of b after executing the listing?
B1948 Governing Asia
Chapter 2
The chapter presents the Finite Difference Method (FDM). This method
dates back to Euler1 who introduced it in Institutiones calculi Differentialis
(1755). The modern researches on the FDM started after the paper by
Courant, et al. (1928), where the method was used to obtain approximated
solutions to Partial Differential Equations (PDEs). In this field, the method
was improved mainly after the Second World War when powerful computers
were available. The books by Collatz (1966); Forsythe and Wasov (1960),
and Richtmyer and Morton (1967) had a great role in stimulating research
on the FDM. Other books by Cooper (1998); Kharab and Guenther
(2002) considered Matlab applications too. Today, the FDM is considered
a consolidated tool that is able to provide reliable solutions of PDEs and is
used by scientists and technicians in many scientific areas, e.g., D’Acunto
(2004); de Vahl Davis (1986). In this chapter, FDM will be applied to
the heat equation by introducing these noteworthy methods: Explicit Euler
Method Implicit Euler Method and Crank–Nicolson Method.
A section is devoted to the equation governing heat propagation and
diffusion.
1 Leonard Euler, a Swiss scientist, 1707–1783. He formulated the laws of solid and fluid
39
Random documents with unrelated
content Scribd suggests to you:
of land they the said Archibald, Derrick, Frederick and Lewis Ludenton
and their heirs is to have and to hold forever with all the appertinances
thereunto belonging; but it is my will that Derrick Ludenton my son’s
proportion of the farm to remain in the hands of my executors and for
them to do as they shall judge best for him with it. And I do will and
bequeath Tartulus Ludenton my son Fifteen Dollars to be paid out of
removable property, and after said fifteen dollars is paid and all my
debts that my land is not sold to pay is paid and discharged, to pay
which debts is my will that my executors should sell such and so much
of the movable property they shall judge will least discommode the heirs
which the residue is left to and share who is to have the property, and it
is my will that all movable property should remain in the hands of my
widdow for her use and the use of Derrick Ludenton my son, Abigail my
daughter, to remain as the use of the farm is above discribed to remain
in the hands of my executors for the use and benefit of Abigail Ludenton
my wife and Abigail Ludenton my daughter and Derrick Ludenton my
son and Cornelia Ludenton my grand daughter untill my wife marries or
untill her disceas, unless Abigail, Derrick or Cornelia or one of them
should marry, and the one that marries is to have use and benefit no
longer of said property until disposed of as is hereafter directed. And I
do will and bequeath unto my six daughters at the deceas or marriage
of my widow all my movable property to be equally divided amongst
them, that is to say Sibyl Ogden, Rebecca Pratt, May Ferris, Anna
Colwell, Abigail Ludenton and Sophiah Caverly my daughters.
And for the further surety of this my last will and testament I
nominate and appoint John Hopkins of the town of Fishkill, County of
Dutchess and State of New York, and Elijah Wixon of the town of
Fredericks and County of Putnam and State aforesaid my sole executors
of this my last will and testiment and I do hereby disallow, revoke and
annull all and singular every other former will testament and bequeath
and executors by me in any wise before mentioned willed and bequeath,
ratifying and allowing this and no other to be my last will and testiment.
In witness whereof I have hereunto set my hand and seal this seventh
day of April in the year of Our Lord one thousand eight hundred and
thirteen.
Henry Ludenton. L. S.
Signed sealed and pronounced in presence of us
Stephen Merritt
John Burtch.
FREDERICK LUDINGTON,
Son of Col. Henry Ludington.
Old store at Kent, built by Frederick and Lewis Ludington about 1808
Major Edmund A. Ogden, of the United States army, who recently died
of cholera at Fort Riley, Kansas Territory, was born at Catskill, N. Y., Feb.
20th, 1810. Soon after, he removed to Unadilla, N. Y., where he
remained until he entered the United States Military Academy. On
graduating, he was attached as brevet Second Lieutenant to the First
Regiment of Infantry, then stationed at Prairie du Chien. He was
subsequently appointed a First Lieutenant in the Eighth Infantry, where
he served until appointed a Captain in the Quartermaster’s Department,
in which corps he remained until his death. He served with credit and
distinction through the Black Hawk, Florida and Mexican wars, and was
created a Major by brevet, for meritorious conduct in the last named of
these wars.
His services, ever faithfully performed, have been arduous and
responsible. He has disbursed for the government millions of the public
money; he has labored hard, and always to the purpose, and after
giving to his country five and twenty years of hard and useful service, he
has died poor.
For the last six years previous to last spring, Major Ogden was
stationed at Fort Leavenworth, where he has rendered important service
to the army in his capacity of Quartermaster. From this post he was
ordered to California, and he removed with his family to New York with
the expectation of embarking on the 20th of April last, when his orders
were suddenly suspended, and he was sent back to assist in outfitting
the expedition against the Sioux Indians. He was afterwards charged
with the arduous duty of erecting, within three months, barracks,
quarters and stables for a regiment of troops at Fort Riley—a point
about 150 miles west of Leavenworth, and which he had himself
selected as a suitable place for a government post, when stationed at
Fort Leavenworth. This place was not settled, and was an almost perfect
wilderness. He took with him about five hundred mechanics and
laborers, with tools and provisions, and commenced his labors. In a new
and unsettled country, so destitute of resources, many obstacles were
encountered, but just as they were being overcome, and the buildings
were progressing, cholera in its most fatal and frightful form made its
appearance among the men, from two to four of them dying every day.
Far removed from homes and kindred, and accustomed to depend upon
Major Ogden for the supply of their daily wants, they turned to him in
despair for relief from the pestilence. He labored among them night and
day, nursing the sick and offering consolation to the dying. At last the
heavy hand of death was laid upon him, and worn out with care,
watching and untiring labors, he fell a victim to the disease whose
ravages he had in vain attempted to stay.
In the death of this officer the army has lost one who was an
ornament to its list; his own corps has lost one of its most efficient
members—one whom they appreciated, and whom they delighted to
praise. Among his associates in the army there is but one sentiment—
that of regret for his loss and admiration for his professional and private
character, and love for his estimable qualities. His associates in the army
are not the only sufferers; but many and many in various parts of the
land have lost a warm and true friend, and the country has lost an
honest man and a Christian soldier.…
In the hour of death, far from all he most loved on earth, he was
cheered by his Christian hope. His faith was unshaken and enduring,
and proved capable of supporting him in that last sad hour. Although
weak and exhausted, he repeated the Lord’s Prayer audibly, and said to
his friend the chaplain, who was by his side, “Tell my dear wife and
children to try and meet me in heaven,” and then sank sweetly and
quietly to rest.
So died the Christian soldier, in the vigor of manhood, and at the post
of duty. Bound as he was by so many tender ties to this earth, not a
murmur escaped his lips, but he met his summons with a cheerful
resignation to that Providence whose dealings he had recognized
through life, and in whom he trusted in death.…
It is interesting to note the evidences of the estimation in which Major
Ogden was held at Fort Riley by the residents and the men in his
employ. The following is an extract from The Kansas Herald of the 10th:
“The death of Major Ogden left a deep gloom upon the spirits of all
the men, which time does not obliterate. His tender solicitude for the
spiritual and bodily welfare of those under him; his unceasing labors
with the sick, and his forgetfulness of self in attendance upon others,
until he was laid low, have endeared his memory to every one there.
And, as a token of affection, they are now engaged in erecting a fine
monument which shall mark their appreciation of the departed. The
monument, which will be of the native stone of the locality, is to be
placed on one of the high promontories at Fort Riley, and can be seen
from many a distant point by those approaching the place. It will bear
the following inscription:
“Erected to the memory of
BREVET MAJOR E. A. OGDEN,
the founder of Fort Riley;
a disinterested patriot and a generous friend;
a refined gentleman; a devoted husband
and father,
and an exemplary Christian.
Few men were more respected in their lives, or more lamented in
their deaths. As much the victim of duty as of disease, he calmly closed
a life, in the public service, distinguished for integrity and faithfulness.
‘And I heard a voice saying unto me, write, blessed are the dead
which die in the Lord from henceforth. Yea, saith the spirit, that they
may rest from their labors; and their works do follow them.’”
Home of the late Lewis Ludington, son of Colonel Ludington, at Carmel, N. Y., built in
1855
The sixth son and youngest child of Colonel Henry Ludington was
Lewis Ludington, who was born in Fredericksburgh on June 25, 1786. At
the age of twenty he engaged with his elder brother Frederick in
conducting a general store near their home. A few years later he
married Polly Townsend, the daughter and oldest child of Samuel
Townsend and his wife Keturah Crosby. The Townsends had come to
Dutchess County many years before from Long Island, and Polly
Townsend’s great-grandfather, Elihu Townsend, settled on a farm in
South East Precinct, close to the Westchester County line. He died about
1804, at the age of 102 years, and was able to walk about the yard six
weeks before his death. For several years after their marriage Lewis and
Polly Townsend Ludington lived in a cottage near the Ludington
homestead at Fredericksburgh, or Kent, as it was then renamed. Then,
in the spring of 1816, they removed to the village of Carmel, where
soon after Lewis Ludington bought property which is still owned by
members of the family. In the fall of 1855 he completed and occupied
the house which is still the family homestead. The wood of which this
house was built was cut on lands owned by Mr. Ludington in Wisconsin,
was sawed in his mills at Oconto in that State, and was shipped from
Green Bay to Buffalo in the lake schooner Lewis Ludington. This
circumstance suggests the fact that Lewis Ludington was strongly
identified with business interests in Wisconsin. He went West in the fall
of 1838, in company with his nephew, Harrison Ludington, already
mentioned, and Harvey Burchard, of Carmel, N. Y. They visited
Milwaukee, which was then a mere village, and during that winter made
several long trips on horseback through the interior of Wisconsin, for the
purpose of selecting government lands. They purchased extensive
tracts, largely with a view to the lumber trade, and in 1839 they formed
at Milwaukee the general mercantile firm of Ludington, Burchard & Co.,
of which Lewis Ludington was the eldest and Harrison Ludington the
youngest member. A year or two later Burchard retired and the firm
became Ludington & Co., Harrison’s younger brother Nelson being taken
into it. Nelson Ludington, by the way, was afterward president of the
Fifth National Bank of Chicago, and for many years was at the head of
large and successful lumbering and manufacturing interests and was
prominent in commercial life in Chicago. For nearly twenty years Lewis
Ludington was the head of the firm of Ludington & Co., which was one
of the foremost in Milwaukee, and which conducted what was for those
days a business of great magnitude. The firm also had lumber mills at
Oconto and docks at Milwaukee. About 1843, Lewis Ludington bought a
tract of land in Columbia County, Wisconsin, and in July of the following
year laid out thereon the city of Columbus. For many years he personally
directed and encouraged the development of the new community, which
grew to be a city of considerable population and wealth.
Thus for almost a quarter of a century Mr. Ludington conducted a
number of enterprises in Wisconsin, enjoying at all times the respect
and confidence of those who knew him and ranking among the best
representative citizens of the two States with which he was identified.
He was a Whig in politics, and exerted much influence in party councils,
especially opposing the extension of slavery, but would never accept
public office, though frequently urged to do so. He died on September 3,
1857, at Kenosha, Wisconsin, and his remains were interred in the family
lot in Raymond Hill Cemetery, at Carmel, N. Y.
CHARLES HENRY LUDINGTON,
Grandson of Col. Henry Ludington.
Oblong, The, 37
“Observer, The New York,” quoted, 219
Ogden, Major Edmund A., 219
Ogden, Edward, Edmund, or Henry, 45
Ogden, Richard Ludington, 223
Updated editions will replace the previous one—the old editions will
be renamed.
ebookbell.com