Anda di halaman 1dari 13

MATLAB TUTORIAL

MLBL1

OUTLINE

Starting with MATLAB


Creating Array
Mathematical Operation with Array
Two-Dimensional Plot
Programming in MATLAB
Polynomial, Curva Fitting, and Interpolation
Aplication in Numerical Analysis
Three-Dimensional Plot

STARTING WITH MATLAB


Matlab Windows

Editor Window (CTRL N) to


open

created mfile script

Working in the
Command Window
The semicolon (;) function is typed result not
displayed
Typing % function is commentary or giving
explaination
Typing clc function is clear the command
window
Command window history
Typing exit function is out from command
window
Typing clear removed variabel from the
memory

Arithmatic Operator with


Scalar

Elementary Math Built-in


Function

Example
Proof the trygonometry identity

x
tan x sin x
cos

2
2 tan x
2

EXCERCISE 1

The radii of the circles are:


R1= 16 mm, R2=6.5 mm, R3=12 mm , and R4=9.5 mm
Determine between the center C2 and C4

EXERCISE 2

An object with an initial temperature


of T0 that is placed at
time t=0 inside a chamber that has a constant temperature
of Ts will experience a temperature change according to the
equation

A soda can at a temperature of 120 F (after object left in the


car) is placed inside refrigenetor where the temperature is 38
F. Determine, o the nearest degree, the temperature of the
can after three hours. Assume k=0.45.
Note:using round function

EXCERCISE 3

Anda mungkin juga menyukai