You are on page 1of 23

Syllabus

• Introduction to matlab page (2)

• The first problem page (3)

• Table of Contents for the first question page (3)

• The manual solution page (4 – 6)

• The matlab solution page (7-10)

• Second problem page (11)

• Table of Contents for the second question page (11)

• The manual solution (12-13)

• The matlab solution page (14-17)

• Third problem page (18)

• Table of Contents for the third question (18)

• The manual solution page (19-20)

• The matlab solution page (21)

• Conclusions results and list of refrences page (22)

1
Introduction

Solving equations manually takes a lot of time and effort, and the
answers may be wrong. The MATLAB application saves time and
guarantees accurate answers. Through simulation from MATLAB, we
can easily draw the system and calculate the claims through it, and it
provides the ability to look at the system in detail. The MATLAB
application offers many scientific methods in one place, which makes it
an application worth using.

2
• First problem

• Abstract
Firstly this is an circuit question, we found the currents in each mish, then we found the all voltage in our
circuit in progress to use the relation of I=V/R to lnow the current in each wire. After all of that we used
matlab in three ways to solve it as shown below :

1) The simulation;as a way of making sure about the current in each wire we used
the simulation in matlab to draw the system to know the voltage of each wire
then by using i=v/r we will know the exact current.
2) The matrices method. 3) The syms method.

The list of content prob1 pages


The hand writen solution 3-6
The matlab simulation 7
The matrices method on matlab 8
The syms method 9-10

List of figuers Purpose of it


Fig(1a) Hand solution

Fig (1b) Hand solution

Fig(1c) Hand solution

Fig(2a) Simulation

Fig(2b) Matrix

Fig(2c) syms

3
• Hand solution
Figure 1 a

4
figure 1b

5

figure 1c

6
The matlab simulation
figure 2a

So we found the volt for each wire then we can use the I=V/R.

7
• The matrices code and output
figure 2b

We used the matrix method on matab on order to find the current in each wire ,as we used the
equations we had on the hand written soluton.

8
• The third matlab code and output
Figure 2c

9
10
• The second problem

• Abstract
Firstly we used the matlab to plot the points of distance and lane width then in the second part
we curve fitted the points of two multible ways then we got the equation of the liner
regression by hand solution and matlab;in order to solve the last part.
1)

The list of content prob1 pages


The hand writen solution 12-13

The matlab plot for part 1 14


The first way to solve second part 15
The second way of solving the second part 15-16
The last part solution using matlab 17

List of figuers Purpose of it


Fig(3a) Code of plotting
Fig (3b) Plotting
Fig(3d) The second part way1
Fig(3e) The secomd part way2
Fig(3f) The plotting for way 2
Fig(3g) The third part

11
12
13
• The code of plotting for the first first part

Figure 3a

• The plot result


Figure 3b

14
• The second part solution way number one
(figure 3d)

• The second part solution way number two


Figure3e

15
• The plotting result for the way number two
figure 3f

16
• Third part
Figure3g

17
• The third problem

• Abstract
We used the 1/3 simpson rule to get the area under the curve by dividing it to three areas ,
using the hand solutoin and matlab in order to check the answers.
1)

The list of content prob1 pages


The hand writen solution 19-20

The matlab code 21


The matlab output 21

List of figuers Purpose of it


Fig(4a) Code and outpot

18
19

20
• The matlab code (figure 4a)

21
Results
• The matlab is faster and more accurate way to solve the problems
than the hand solution.
• The simulation in matlab can give a better look into a specific
information and a full study of system behavior.
• The figaurs in matlab is easy to use than excel and give you more
options to control.

Conclusion
• The matlab is skill worth to have in your degree programme; you can
solve plot and simulat and a lot more programing skills,it has a large
data base and a lot of users which can make the usage and learning
the matlab more easly.

Refrences

• Introduction to matlab for engineering


studenents book ( August 2005) by David
houque born in october 1968-till now.

22

You might also like