Download as pdf or txt
Download as pdf or txt
You are on page 1of 29

SIMULATION PROBLEM-1

In the triangle shown a = 5 in., b = 7 in., and ϒ = 250. define a, b,


and ϒ as variables, and then:
a) Calculate the length of 'c' by substituting the variables in the
Law of Cosine.
(Law of Cosines: c2 = a2 + b2 - 2ab Cos( ϒ))
b) Calculate the angles α and β (in degrees) using the Law of
Sines.
c) Verify the Law of Tangents by substituting the results from
part (b) into the right and left sides of the equation.
1 
tan  (    )
Law of Tangents:
a b
  2 
a  b tan 1
2 [
( ) ]
Program:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 1
Results:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 2
SIMULATION PROBLEM-2

Newton's law of cooling give the temperature T(t) of an object at time t in term of T0, its
temperature t = 0, and Ts, the temperature of the surroundings.
T(t)  Ts  (T0 Ts )ekt
A police officer arrive at a crime scene in hotel room at 9:18 PM, where he finds a dead body.
He immediately measures the boy's temperature and find it to be 79.50 F. Exactly one hour later
he measures the temperature again, and find it to be 78.00 F. Determine the time of death,
assuming that victim body temperature was normal (98.60 F) prior to death, and that the room
temperature was constant at 690 F.

Program:

Results:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 3
SIMULATION PROBLEM-3

Plot the function f (x)  sin2 (x)cos( 2 x) and its derivative, both on the same plot, for
0  x  2 . Plot the function with a solid line, and the derivative with a dashed line. Add
a legend and label the axes.

Program:

Results:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 4
SIMULATION PROBLEM- 4

Program:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 5
Results:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 6
SIMULATION PROBLEM- 5

Program:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 7
Results:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 8
SIMULATION PROBLEM- 6

Program:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 9
Results:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 10
MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 11
SIMULATION PROBLEM- 7

Program:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 12
Results:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 13
SIMULATION PROBLEM- 8

Program:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 14
Results:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 15
SIMULATION PROBLEM- 9

Program:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 16
Results:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 17
SIMULATION PROBLEM- 10

Program:

Results:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 18
SIMULATION PROBLEM- 11

Program:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 19
Results:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 20
SIMULATION PROBLEM- 12

Program:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 21
MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 22
Results:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 23
SIMULATION PROBLEM- 13

Program:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 24
Results:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 25
SIMULATION PROBLEM- 14

Program:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 26
Results:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 27
SIMULATION PROBLEM- 15

Program:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 28
Results:

MATLAB for Engineers, Dept of ECE, Raghu Engineering College, Visakhapatnam Page 29

You might also like