Assignment Questions: Course: Computing Applications For Mechanical Systems (MEEN-561)
Assignment Questions: Course: Computing Applications For Mechanical Systems (MEEN-561)
ASSIGNMENT QUESTIONS
Note: Every Student Answer all the First 6 Questions (Compulsory Questions)
1. Write a program in MATLAB that solves the following set of equations given below for
the given values of a, b and c. Check the program for the case a=112, b=75, and c=-67
and give the values of variables x, y and z.
6x-4y+8z=a
-5x-3y+7z=b
14x+9y-5z=c
2. Write a program in MATLAB to plot the functions u=2*log(50*x+3) and v=5*sin(6*x)
over the interval 0<=x<=10 with the increment of 0.01. Label the plot and each curve.
The variables u and v represent speed in km/hr, the variable x represents distance in km.
3. A machine is mounted of the set of springs, the potential energy stored in the spring is
(k*x2/2), k is the spring constant and x is the compression in the spring. The force
required to compress the spring (k*x). Write a program in MATLAB to determine the
total potential energy of the vibratory system and plot compression of the spring (x) in m
and force (F) in N.
Spring No. 1 2 3 4 5
Force (N) 12 10 8 5 9
Spring constant K (N/m) 1100 900 800 700 600
4. In performing the thermal analysis to finding heat transfer rate in wall the
temperatures(0C) are noted down by the thermocouple in the excel sheet in the table
given below, the thermal conductivity is 120 w/m0C, length of the wall is 12 m and area
of cross section is 10 m2. Find heat transfer rate all along the wall by importing excel
sheet with data of time in seconds and temperatures (0C) into MATLAB and make a plot
of time in seconds with heat transfer rate (Watts) in the wall. The data from experimental
analysis are given below:
TIME
(in seconds) T1 (0C) T2 (0C)
1 79 50
2 29 40
3 51 30
4 43 52
5 89 59
6 32 60
5. Write a program in MATLAB and algorithm by using else-if looping statement to find the roots of
2
quadratic equation ax +bx+c=0.
6. Solve the system by MATLAB programming: The motion of the system is modeled as the two springs
which are in (a) parallel and in (b) series configuration by the following equation, find the
displacement, velocity and acceleration with respect to time (from 0 to 120 seconds) for above case
(a) and case (b). Assume m=0.5, k1=2.5N/m, K2=3.75N/m.
2.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
3.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume m=1.25 kg, L=2.5 m, k=22 N/m, c=1.5 Ns/m, g=9.81 m/s^2.
4.) Write a program in MATLAB to find the centroid of the section given below by assuming
user defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom
left most corner of the section.
6.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
7.) Solve the system by MATLAB programming: The motion of the system is modeled by the
following equation, find the displacement, velocity and acceleration with respect to time (from 0 to
120 seconds). Assume m0 =2.5 kg, k=2.75N/m, Fc =120N, x0 =2x, g=9.81m/s^2.
8.)Write a program in MATLAB to find the centroid of the section given below by assuming
user defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom
left most corner of the section.
10.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume µ=0.5, m=0.5 kg, g=9.81 m/s2, d=0.2 m, l=0.45 m, I=12.5m4.
11.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume meq= 22.5kg, k=22 N/m, c=2 Ns/m, α=200.
12.)Write a program in MATLAB to find the centroid of the section given below by assuming
user defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom
left most corner of the section.
14.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume Io =22.5 m4, c=0.5 Ns/m, k=2.25 N/m, x0=0.03 m, l=2.75 m, ω=4.2 rad/s.
15.) Solve the system by MATLAB programming: find the displacement and velocity with respect to
time (from 0 to 120 seconds) with initial condition as x(0)=0.25.
dx/dt=x3- (t3/(t5+2))
16.)Write a program in MATLAB to find the centroid of the section given below by assuming user
defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom left most
corner of the section.
18.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds) for
the given forced vibratory system with spring-mass system. Assume m=1 kg, k=2 N/m, F=100N, Ω=2.5
rad/sec.
19.) Solve the system by MATLAB programming: The motion of the system is modeled by the
following equation, find the displacement, velocity and acceleration with respect to time (from 0 to
120 seconds). Assume Jo =225m4, kt=270 N/m, T=120 N-m.
22.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume m=1 kg, k =2 N/m.
23.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume m=1 kg, k=2 N/m, c=0.5 Ns/m.
24.)Write a program in MATLAB to find the centroid of the section given below by assuming user
defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom left most
corner of the section.
27.) Solve the system by MATLAB programming: The motion of the system is modeled mathematically, find
the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds). Assume mb=1 kg,
mp=1.5 kg, L=2.5 m, l=0.9 m, g=9.81m/s^2.
28.)Write a program in MATLAB to find the centroid of the section given below by assuming user
defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom left most
corner of the section.
30.) Solve the system by MATLAB programming: The motion of the system is modeled as the two springs are
in series by the following equation, find the displacement, velocity and acceleration with respect to time (from
0 to 120 seconds). Assume m=0.5, k1=2.5N/m, K2=3.75N/m, k3=5 N/m.
31.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume µ=0.5, m=0.5, g=9.81 m/s2 , d=0.2m, l=0.45, I=12.5m4.
34.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume m=1.25 kg, L=2.5 m, k=2.5 N/m, c=1.5 Ns/m, g=9.81m/s2.
35.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume µ=0.5, m=0.5, k=2.5 N/m, g=9.81 m/s2.
36.)Write a program in MATLAB to find the centroid of the section given below by assuming user
defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom left most
corner of the section.
38.) Solve the system by MATLAB programming: The motion of the system is modeled by the
following equation, find the displacement, velocity and acceleration with respect to time (from 0 to
120 seconds). Assume Jp =275m4, W=2.5kg, d=1.5m.
39.) Solve the system by MATLAB programming: The motion of the system is modeled by the
following equation, find the displacement, velocity and acceleration with respect to time (from 0 to
120 seconds). Assume k=2.5 N/m, l=1.75 m, W=2.5 kg, m=2.75 kg.
40.)Write a program in MATLAB to find the centroid of the section given below by assuming user
defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom left most
corner of the section.
42.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
43.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
46.) Solve the system by MATLAB programming: The motion of the system is modeled by the
following equation, find the displacement, velocity and acceleration with respect to time (from 0 to
120 seconds). Assume m=1.75 kg, Fo =225*sin(ω*t), k=25N/m, β=0.95, ω=2.75 rad/sec.
47.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume m=1.75kg, Fo =225 N, k=25 N/m, β=0.95.
48.)Write a program in MATLAB to find the centroid of the section given below by assuming user
defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom left most
corner of the section.
50.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
52.)Write a program in MATLAB to find the centroid of the section given below by assuming user
defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom left most
corner of the section.
54.) Solve the system by MATLAB programming: The motion of the system is modeled by the
following equation, find the displacement, velocity and acceleration with respect to time (from 0 to
120 seconds). Assume m0 =2.5 kg, k=2.75N/m, Fc =120*sin(ω*t), ω=2.75 rad/sec x0 =2x,
g=9.81m/s2.
55.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume Io =22.5m4, c=0.5 Ns/m, k=2.5 N/m, l=2.75 m, F0=120N, ω=2.75 rad/sec.
56.)Write a program in MATLAB to find the centroid of the section given below by assuming user
defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom left most
corner of the section.
58.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume m=1.75kg, Fo =225 N, k=25N/m, β=0.95, ω=2.75 rad/sec.
59.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume Io =225, m0 =2.5 kg, k=2.75N/m, l=1.2 m, x0 =1.3, g=9.81m/s^2, ω=sqrt((5*k*l2)/(8*I0)).
60.)Write a program in MATLAB to find the centroid of the section given below by assuming user
defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom left most
corner of the section.
63.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume Jo =22.5m4, M=2.5 kg, k1=25N/m, k2=22.5N/m, a=0.33, b=0.66, F0=125 N, l=1.33m,
ω=sqrt((J0+M*l2)/(k1*a2+k2*b2).
4x 36 x 10 sin t
66.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, solve the differential equation and find the displacement, velocity and acceleration with respect to
time (from 0 to 120 seconds). Assume M=22.5 kg, c=2.5 Ns/m, k=22 N/m, m=1.5 kg, e=0.3, ω=2.75
rad/sec.
72.)Write a program in MATLAB to find the centroid of the section given below by assuming user
defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom left most
corner of the section.
74.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, solve the differential equation and find the displacement, velocity and acceleration with respect to
time (from 0 to 120 seconds).
x x x sin(t )
75.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume m=1.25 kg, k=2.5 N/m, l=1.33m, F(t)=125*sin(ω*t), ω=1.25 rad/sec.
76.)Write a program in MATLAB to find the centroid of the section given below by assuming user
defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom left most
corner of the section.
78.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
79.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume ωn=1.75 rad/sec, ζ=0.5.
80.)Write a program in MATLAB to find the centroid of the section given below by assuming user
defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom left most
corner of the section.
82.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume α=1.330.
83.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume ω=1.75 rad/sec.
86.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
87.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume m=1.25 kg, k=2.5 N/m, l=1.33m, F(t)=125*sin(ω*t), ω=1.75 rad/sec.
88.)Write a program in MATLAB to find the centroid of the section given below by assuming user
defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom left most
corner of the section.
91.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume m=1.25 kg, k=2.5 N/m, r=0.33m, J0=27.5 m4.
92.)Write a program in MATLAB to find the centroid of the section given below by assuming user
defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom left most
corner of the section.
94.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume m=1.25 kg, k=2.5 N/m.
95.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume m=1.25 kg, k=2.5 N/m, a=0.3 m, l=1.33 m, g=9.81 m/s2.
98.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume m=1.25 kg, k=2.5 N/m, a=0.3 m, l=1.33 m, g=9.81 m/s2.
99.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume m=1.25 kg, M=12.5 kg, l=1.33m, Ѳ=22.50.
100.)Write a program in MATLAB to find the centroid of the section given below by assuming user
defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom left most
corner of the section.
102.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume m=1.25 kg, k=2.5 N/m, l=1.33m, g=9.81 m/s2, kt=12.5 N/m, d=0.16 m.
103.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume k1=1.25 N/m, k2=3.75 N/m, R=1.33 m, a=0.25m, J0=27.5 m4.
104.)Write a program in MATLAB to find the centroid of the section given below by assuming user
defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom left most
corner of the section.
106.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume k=2.5 N/m, l=1.33m, J0=27.5 m4.
108.)Write a program in MATLAB to find the centroid of the section given below by assuming user
defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom left most
corner of the section.
110.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume m=1.25 kg, k=2.5 N/m, r=0.33m, J0=27.5 m4.
111.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume k=2.5 N/m, c=0.33 Ns/m.
112.)Write a program in MATLAB to find the centroid of the section given below by assuming user
defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom left most
corner of the section.
114.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume m=1.25 kg, J0=22.5 m4, µ=0.0025, d=0.33m.
115.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume ID=250 m4, G= 20 GN/m2, J=280 m4,l=2m.
116.)Write a program in MATLAB to find the centroid of the section given below by assuming user
defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom left most
corner of the section.
118.) Solve the system by MATLAB programming: The motion of the system is modeled by the
following equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120
seconds). Assume l=0.45 m, g=9.81 m/s2.
119.) Solve the system of Cantilever beam with Tip mass (i.e., point load at end of the cantilever beam)
by MATLAB programming: The motion of the system is modeled by the following equation, find the
displacement, velocity and acceleration with respect to time (from 0 to 120 seconds). Assume M= 10 kg,
L=2 m, E= 200 Gpa, I= 250 m4.
122.) Solve the system by MATLAB programming: The motion of the system is modeled by the
following equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120
seconds).
123.) Solve the system of U-tube Manometer by MATLAB programming: The motion of the system is
modeled by the following equation, find the displacement, velocity and acceleration with respect to time
(from 0 to 120 seconds). Assume l=0.45 m, g=9.81 m/s2.
124.)Write a program in MATLAB to find the centroid of the section given below by assuming user
defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom left most
corner of the section.
127.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume J0=22.5 m4, k=2.5 N/m, c=0.27 Ns/m, l=0.13 m.
128.)Write a program in MATLAB to find the centroid of the section given below by assuming user
defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom left most
corner of the section.
130.) Solve the system by MATLAB programming: The motion of the system is modeled by the
following equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120
seconds). Assume F(t)=120*sin(ω*t), ω=2.75 rad/sec.
131.) Solve the system by MATLAB programming: The motion of the system is modeled by the following
equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120 seconds).
Assume m=1.25 kg, ct=2.0 Ns/m, l=1.33m, g=9.81 m/s2.
134.) Solve the system by MATLAB programming: The motion of the system is modeled by the
following equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120
seconds). Assume m=10 kg, c= 5 Ns/m, k= 20 N/m.
135.) Solve the system by MATLAB programming: The motion of the system is modeled by the
following equation, find the displacement, velocity and acceleration with respect to time (from 0 to 120
seconds).
136.)Write a program in MATLAB to find the centroid of the section given below by assuming user
defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom left most
corner of the section.
139.) By using MATLAB program to generate a plot of y(x) = e–(0.7 *(sin wx))/x and
z(x) = e–(0.6*(cos wx))/x where w= 15 rad/s, and 0 ≤x ≤15, to generate the x vector in
increments of 0.05.
140.) Write a program in MATLAB to find the centroid of the section given below by assuming user
defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom left most
corner of the section.
142.) Plot the displacement of the system given with time (from 0 to 120 seconds) by using MATLAB.
143.) Write a program in MATLAB to plot the given equations in single window using the limits
0 ≤ t ≤ 6π
146.) Write the program for the task given by using MATLAB: The motion of the system is modeled by the
following equation, solve the differential equation and find the displacement, velocity and acceleration with
respect to time (from 0 to 120 seconds) and plot the displacement (as x-axis) vs velocity (as y-axis). Assume
m=1 kg, k=1.5N/m, kr =2N/m, L=1m, La =0.3m.
147.)Write a program in MATLAB to generate a plot of y(x) =cos(x)/x between intervals of π/100 to 10*π with
increments of π/100.
148.)Write a program in MATLAB to find the centroid of the section given below by assuming user
defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom left most
corner of the section.
151.) Write the program for the task given in MATLAB: The motion of the system is modeled by the following
equation, solve the differential equation and find the displacement, velocity and acceleration with respect to
time (from 0 to 120 seconds) and plot the displacement (as x-axis) vs velocity (as y-axis).Assume Jo =225,
ω=12rad/s, k=12 N/m, l=0.5 m, M0=37.5 N-m.
152.)Write a program in MATLAB to find the centroid of the section given below by assuming user
defined co-ordinates along X & Y axis and world coordinate system (origin) at the bottom left most
corner of the section.