Anda di halaman 1dari 7

TECHNOLOGICAL INSTITUTE OF THE PHILIPPINES

1338 Arlegui St., Quiapo Manila

Computer Application in ChE

Laboratory Exercise No.1


Familiarization with Matlab Environment, Built-in Function, Matrices and Plotting

Submitted by:

Submitted to:
Engr. Crispulo Maranan

June 15, 2015

Laboratory Exercise No. 1


Familiarization with Matlab Environment, Built-in Functions, Matrices and Plotting
1. Objective(s):
The activity aims to familiarize the students with matlab environment, built-in functions, matrices and plotting.
2. Intended Learning Outcomes (ILOs):
The students shall be able to:
2.1 get acquainted with matlab environment and its various features.
2.2 understand the built-in functions of matlab.
2.3 Operate on the matrices.
2.4 Plot different graphs using matlab.
3. Discussion:
MATLAB is a special-purpose language that is an excellent choice for writing moderate-size
programs that solve problems involving the manipulation of numbers. The problems may be relatively
complex, while the MATLAB programs that solve them are relatively simple: relative,that is, to the equivalent
program written in a general-purpose language, such as C++ or Java. As a result, MATLAB is being used in
a wide variety of domains from the natural sciences through all disciplines of engineering to finance and
beyond, and it is heavily used in industry.
Matlab is a powerful language for technical computing. Its basic data element is matrix (array).It can
be used for math computations, modeling and simulations, data analysis and processing, visualization and
graphics, and algorithm development.
The standard Matlab program has tools (functions) that can be used to solve common problems.
The array is a fundamental form that Matlab uses to store and manipulate data. An array is a list of
numbers arrange in rows or in 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.
One use of array is to store information and data, as in a table. In science and engineering, one-dimensional
arrays frequently represent vectors and two-dimensional arrays represent matrices.
Once variables are created in Matlab they can be used in a wide variety of mathematical operations.
Matlab is designed to carry out advanced array operations that have many applications in science and
engineering. Addition and subtraction are simple operations. The other basic operations, multiplication,
division and exponentiation can be done in Matlab in two different ways. One way, which uses the standard
symbols (*,/ and ^), follows the rules of linear algebra. The second way, which is called element-by-element
operations, uses the symbols .*,./ and .^ ( a period is typed in front of the standard operation symbol).In both
types of calculations, Matlab has left division operator (.\ or \).
4. Resources:
Matlab

5. Procedure:
1.Identify the different matlab windows and write its corresponding purpose.
2.Note the different symbols used in the command window and write its corresponding use.
3.Use matlab as a calculator and show the results in the accompanying table.
4.Note the different built-in functions and show the results in the accompanying table.
5.Evaluate the results after pressing the enter key for the assignment operator (=).
6.Evaluate the results after pressing the enter key for the creation of vectors (row vector and column vector)
from a known list of numbers, with constant spacing by specifying the first term, the spacing, and the last
term, with constant spacing by specifying the first and last terms,and the number of terms
7.Evaluate the results after pressing the enter key for the creation of two-dimensional array (matrix).
8.Evaluate the results after pressing the enter key using colon (:) in addressing arrays.
9. Identify the different built-in functions for handling array and indicate its description and give an example.
10.Evaluate the results after pressing the enter key that involves strings and strings as variables.
11. Evaluate the results after pressing the enter key that involves the operations of matrices.
12.Evaluate the values of x, y and z of the three equations three unknowns :
4x 2y + 6z = 8
2x + 8y + 2z = 4
6x + 10y + 3z = 0
13.Evaluate the results after pressing the enter key that involves element-element operations.
14.Identify the different built-in functions for analyzing arrays and indicate its description and give an
example.

6. Data and Results:

1.
Window

Purpose

Command Window

Main window, enter variables, runs programs

Figure Window

Contains output from graphic commands

Editor Window

Creates and debugs script and function files

Help Window

Provides help information

Array Editor

Checking the data

Workspace Window

Provides information about the variables that are


used

Current Folder Window

Shows the files in the current folder

Command History Window

Logs commands entered in the Command Window

2.
Symbol

Purpose

; (Semicolon)

It separates columns

% (Percent)

It signifies comment and is used for formatting

clc

Deleting all statements in command window

3.
Mathematical Expression
>> 6/3-2

>> ((pi/6) 1/4)*9

Result

7. Conclusion:

MATLAB is a special-purpose language that is an excellent choice for writing moderate-size programs that
solve problems involving the manipulation of numbers. The problems may be relatively complex, while the
MATLAB programs that solve them are relatively simple: relative,that is, to the equivalent program written in
a general-purpose language, such as C++ or Java. As a result, MATLAB is being used in a wide variety of
domains from the natural sciences through all disciplines of engineering to finance and beyond, and it is
heavily used in industry.

8. Further Readings:
Ferraris, G. and Manenti, F. (2010). Interpolation and regression models for the chemical engineer:
solving numerical problems. Germany: Wiley-VCH Verlag
Filo, O. (2010). Information processing by biochemical systems: neural network type configurations.
New Jersey: Wiley.
Gopal, S. (2009). Bioinformatics: a computing perspective. India: McGraw-Hill Science/Engineering
Math.
Jaluria, Y. (2012). Computer methods for engineering with MATLAB applications (2nd ed.). Boca,
Raton,Florida: CRC Press.
Knopf, F. C. (2012). Modeling, analysis and optimization of process and energy systems.Hoboken,
New Jersey: John Wiley and Sons.
Velten, K. (2009). Mathematical modeling and simulation: introduction for scientists and engineers.
Singapore: Wiley-VCH.

9. Assessment (Rubric for Laboratory Performance):


TECHNOLOGICAL INSTITUTE OF THE PHILIPPINES
RUBRIC FOR MODERN TOOL USAGE
(Engineering Programs)
Student Outcome (e): Use the techniques, skills, and modern engineering tools necessary for engineering
practice in complex engineering activities.
Program: Chemical Engineering Course: CHE 530D1 Section: _______

____Sem SY ________

Performance
Indicators

Unsatisfactory

Developing

Satisfactory

Very Satisfactory

1.

Apply
appropriate
techniques,
skills, and
modern tools
to perform a
disciplinespecific
engineering
task.

Fails to identify any


modern techniques
to perform
discipline-specific
engineering task.

Identifies
modern
techniques but
fails to apply
these in
performing
disciplinespecific
engineering
task.

Identifies modern
techniques and is
able to apply
these in
performing
discipline-specific
engineering task.

Recognizes the
benefits and
constraints of modern
engineering tools and
shows intention to
apply them for
engineering practice.

2.

Demonstrate
skills in
applying
different
techniques
and modern
tools to solve
engineering
problems.

Fails to apply any


modern tools to
solve engineering
problems.

Attempts to
apply modern
tools but has
difficulties to
solve
engineering
problems.

Shows ability to
apply
fundamental
procedures in
using modern
tools when
solving
engineering
problems.

Shows ability to apply


the most appropriate
and effective modern
tools to solve
engineering problems.

Score

3.

Recognize the
benefits and
constraints of
modern
engineering
tools.

Does not recognize


the benefits and
constraints of
modern engineering
tools.

Recognizes
some benefits
and constraints
of modern
engineering
tools.

Recognizes the
benefits and
constraints of
modern
engineering tools
and shows
intention to apply
them for
engineering
practice.

Recognizes the need


for benefits and
constraints of modern
engineering tools and
makes good use of
them for engineering
practice.

Total Score
Mean Score = (Total Score / 3)
Percentage Rating = (Total Score / 12) x 100%

Evaluated by:

______________________________________
Printed Name and Signature of Faculty Member

_______________
Date