You are on page 1of 30

TECHNICAL COMPUTING

QASIM HABIB
Today’s Content

1. Introduction & Contents

2. Books

3. An Overview of MATLAB

4. Grouping & Assignments


Contents of Course
● Simulation of Polymer Processing Operations and data
on material properties
● Computer aided simulations and analysis of design
work
● Use of commercial simulation software
● Interpretation of output data from design packages
● Modeling of selected components of manufacturing
machines
Progress Diagram

Phase 1 Phase 2

Application of
MATLAB MATLAB to
Software Modeling &
Simulations
Books
INTRODUCTION TO
MATLAB 7
FOR ENGINEERS
by
WILLIAM J. PALM III
McGraw-Hill
John Wiley & Sons, Inc.
2006
This is very important book
for our level and we will
follow most of its parts.
Elsevier, 1998
Excellent book.
Springer-Verlag Berlin
Heidelberg 2007
We are concerned with
2nd chapter of this book.
Springer-Verlag London
Limited 2005
A very well written book.
McGraw-Hill 2007
A very easy written
book.
Elsevier, 2007
I think it is one of the
best book for MATLAB
starters.
Cambridge, 2006
Another good book to
learn MATLAB
Prentice Hall, 1998
A good book for future
2007 WILEY-VCH
Verlag GmbH & Co.
Another excellent
reference
Introduction
MATLAB = Matrix Laboratory
1970, The MathWorks, Inc. Massachusetts
Major Applications:
Signal Processing & Numerical Analysis
MATLAB is both a;
1. A computer programming language
2. A software environment
● MATLAB is programmable and has the same
capabilities as other programming languages, Such as
Fortran, C, BASIC and Pascal, but it has the advantage
that it has a software environment .
● Due to its software environment it can be used more
effectively with ease.
● MATLAB 7.0 require windows XP on your system to
run. There are number of add-ons which can be
installed optionally.
● Although MATLAB is a high-level language and
interactive environment that enables the user to
perform computationally intensive tasks faster
than with traditional programming languages
such as C, C++, and Fortran, it can also be used
as a programming learning tool for novices.
Advantage of interactive environment

● Can manage variables


● Import and export data
● Perform calculations
● Generate plots
● Develop and manage files for use with MATLAB
MATLAB Environment
MATLAB Interactive sessions

● Command Window
○ Used to communicate with MATLAB
○ Various instructions can be typed (Commands)
○ What is >> sign ? Ready to receive instructions
● Current Directory
● Workspace
● Command History Window
● For default layout
View>Desktop Layout>Default
Entering Commands and Expressions

● •Use Enter key to execute any given command


● •Use navigation keys to scroll for previous commands
● •Variable: a symbol that contains a value
● •Note ans itself is a variable
● •Variable name follow some conventions
● •Some wrong variable names

Thus = sign is an assignment operator.


Scalar arithmetic operations
A scalar is a single number. A scalar variable is a variable that contains a single
number
Order of Precedence (PEMDAS)
Task 1
● Solve T1.1-1 on page 11
● Solve Example 1.1-1
● Solve T1.1-2 on page 16
Managing the work session
Special variables and constants
Complex number operations

● MATLAB handles complex number algebra


automatically.
● You can add, subtract, multiply or divide
complex numbers.
Formatting Commands
Reference

This lecture is from pg 3-17 of your main MATLAB book


INTRODUCTION TO MATLAB 7
FOR ENGINEERS
by
WILLIAM J. PALM III

You might also like