More than Just Lines on a Map: Best Practices for U.S Bike Routes
MEC232 Complete Notes parts 1.pptx
1. Course Code: MEC232
Course Title: Numerical and Statistical
Method Laboratory
Lab Instructor: Dr. Ravindra Jilte
1
2. MATLAB® is a very popular language for technical computing used by students,
engineers, and scientists in universities, research institutes, and industries
all over the world.
The software is popular because it is powerful and easy to use.
Dr. Ravindra Jilte2
3. The name MATLAB
stands for MATrix LABoratory, because its basic data element is a
matrix (array).
MATLAB can be used for math computations, modeling and simulations,
data analysis and processing, visualization and graphics, and algorithm
development.
Dr. Ravindra Jilte3
7. You get matlab to do things for you by typing in commands
Matlab prompts you with two greater-than signs (>>) when it is
ready to accept a command from you.
Dr. Ravindra Jilte7
14. The Command History Window lists the commands that have
been entered in the
Command Window. This includes commands from previous
sessions. A command
in the Command History Window can be used again in the
Command Window.
By double-clicking on the command, the command is reentered
in the
Command Window and executed.
Dr. Ravindra Jilte14
15. The Command History Window lists the commands that have been entered in the
Command Window.
This includes commands from previous sessions.
A command in the Command History Window can be used again in the Command
Window.
By double-clicking on the command, the command is reentered in the
Command Window and executed.
Dr. Ravindra Jilte15
51. The array is a fundamental form that MATLAB uses to store and
manipulate data.
An array is a list of numbers arranged in rows and/or columns.
The simplest array (one-dimensional) is a row or a column of
numbers.
A more complex array (two-dimensional)
is a collection of numbers arranged in rows and columns.
Dr. Ravindra Jilte51
52. One use of arrays is to store information and data, as in a table.
In science and engineering,
one-dimensional arrays frequently represent vectors,
and two-dimensional arrays often represent matrices.
In MATLAB, a vector is created by assigning the elements of the vector to a
variable.
This can be done in several ways depending on the source of the information
that is used for the elements of the vector.
Dr. Ravindra Jilte52
66. A column (or row) vector B can be appended to a matrix A
if B has the same length as the columns (or rows) of A
Execute the following commands using MATLAB and
observe and evaluate the responses
Dr. Ravindra Jilte66
125. Write a script file to compute the sum of the first 15 terms in
the series 5k2-2k, k=1,2,3,……15
Dr. Ravindra Jilte125
126. Write a script file to determine the number of terms required
for the sum the series 5k2-2k, k=1,2,3,……,to exceed 10000.
What is the sum for this many terms?
Dr. Ravindra Jilte126
136. Write a script file to determine the number of terms required
for the sum the series 5k2-2k, k=1,2,3,……,to exceed 10000.
What is the sum for this many terms?
Practice questions
Dr. Ravindra Jilte136