Professional Documents
Culture Documents
Numerical First Group
Numerical First Group
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.
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)
11
12
13
• The code of plotting for the first first part
Figure 3a
14
• The second part solution way number one
(figure 3d)
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)
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
22