0% found this document useful (0 votes)
130 views11 pages

Matlab Assignment

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
130 views11 pages

Matlab Assignment

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Name: Shivansh Tripathi

Class: K2
Reg No: 23FE10CAI00544

Q1: Q1. Calculate the area and circumference of a circle with a radius of 4 cm. Write set of commands
used at command prompt in MATAB. Submit screenshot of MATLAB commands and answer.
Q2: Q2. In MATLAB create two variables: a = 4 and b = 17.2. Now use MATLAB to perform the following
set of calculations. Submit screenshot of MATLAB commands at command prompt and answer- (A)- 5a
(B)-(b+9.8)1/3 (c)-10(5a+16)1/2
Q3: Q3. Calculate for the products AB, AC, BC, BA, CA and ACT , if these are defined. Submit screenshot
of MATLAB commands at command prompt and answer.
Q4. Calculate (BC) · (−AD + 3D) for Submit screenshot of MATLAB commands at command prompt and
answer.
Q5. Calculate the area and circumference of a circle with a radius of 4 cm. Write Script File in MATAB.
Submit MATLAB script file and screenshot of answer.
Q6. Create a new script file called SphereScript.m that will compute and display the surface area and the
volume of a sphere. Submit MATLAB script file and screenshot of answer.
Q7. Submit MATLAB script file and screenshot of answer.

Plot the given polynomial.


Q8. Create script file to plot this function. Submit MATLAB script file and screenshot of answer

The eqn of a 10hz sine wave with an amplitude of 3 is 3sin(2pi(10)t)


Q9: Wind tunnels are used to evaluate high performance aircraft (see figure). Figure. Wind tunnels are
used to test aircraft designs. To interpret wind tunnel data, the engineer needs to understand how gases
behave. The basic equation describing gas properties is the ideal gas law, PV = nRT Where: P= pressure,
kPa V = volume, m n = number of kmoles of gas in the sample R= ideal gas constant, 8.314 kPa m/kmole
K T= temperature, expressed on an absolute scale (i.e., in degrees K) In addition, we know that the
number of kmoles of gas is equal to the mass of gas divided by the molar mass (also known as the
molecular weight); that is. Page 3 of 3 n = m/MW where: m = mass, kg MW = molar mass, kg/kmole
Different units can be used in the equations, if the value of R is changed accordingly. Assume that the
volume of air in the wind tunnel is 1000 m3 . Before the wind tunnel is tuned on, the temperature of the
air is 300 K and the pressure is 100 kPa. The molar mass (molecular weight) of air is approximately 29
kg/kmole. Find the mass of air in the wind tunnel.
Q10. Newton’s Law of Universal Gravitation tells us that the force exerted by one particle on another is
Where the universal gravitational constant (G) is found experimentally to be The mass of each object is
m1 and m2, respectively, and r is the distance between the two particles. calculate the following (Submit
MATLAB script file and screenshot of answer).

(a). Use the Newton's law of universal gravitation to find the force exerted by the Earth on the Moon,
assuming that the mass of the Earth is approximately 6 * 1024 kg. the mass of the Moon is
approximately 7.4 * 1022 kg. and the Earth and the Moon are in the average of 3.9 * 105 m apart.

b) We know that the Earth and the Moon are not always the same distance apart. Find the force the
Moon exerts on the Earth for 10 distances between 3.8 * 108 m and 4.0 * 108 m. Plot the graph
between the distance and the force exerted.

You might also like