Homework 4
pdf
keyboard_arrow_up
School
Stevens Institute Of Technology *
*We aren’t endorsed by this school
Course
ME 635
Subject
Mechanical Engineering
Date
Apr 3, 2024
Type
Pages
13
Uploaded by AgentCat6898
Homework 3 By DIVYESH SOLANKI (20020446) Submitted to: Kishore Pochiraju Subject: MODELLING AND SIMULATION Date: 02-19-2024
DEPARTMENT OF MECHANICAL ENGINEERING STEVENS INSTITUTE OF TECHNOLOGY HOBOKEN, UNITED STATES
Table of Contents Problem 1 ..............................................................................................
3
Problem 2 ..............................................................................................
5
Problem 3 ..............................................................................................
9
Comparison between two Models. ...................................................................................................
12
Problem 1 Read the data from the csv file and plot the observations data in the files using MATLAB. In order to perform the linear regression first I need to see the data and it
’
s behaviour in order to hypothese the model and fitting the given data into that model. For that I have used the following code in the MATLAB to plot the data on graph. % Reading Dataset 1,2,3 %
dataset1=csvread(
"C:\Users\solan\Downloads\Homework4_2024\Homework4_
2024\Homework4_ME635_DataSet1.csv"
);
dataset2=csvread(
"C:\Users\solan\Downloads\Homework4_2024\Homework4_
2024\Homework4_ME635_DataSet2.csv"
);
dataset3=csvread(
"C:\Users\solan\Downloads\Homework4_2024\Homework4_
2024\Homework4_ME635_DataSet3.csv"
);
x1=dataset1(:,1);
y1=dataset1(:,2);
x2=dataset2(:,1);
y2=dataset2(:,2);
x3=dataset3(:,1);
y3=dataset3(:,2);
figure
hold on
plot(x1,y1,
'*'
)
title(
'Dataset 1'
)
hold off
figure
hold on
plot(x2,y2,
'*'
)
title(
'Dataset 2'
)
hold off
figure
hold on
plot(x3,y3,
'*'
)
title(
'Dataset 3'
)
hold off
Using this code in MATLAB I was able to plot the data shown in the below graphs.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Problem 2 Based on the data plot, hypothesize a first model for the given datasets. Different models can be hypothesized based on your visualization. Find the best-fit parameters for each model error in the fits. Draw three plots that show the comparison between the first model and the corresponding observation data for each set. After plotting the data onto the graph, I have hypothesized different model for given three datasets as shown below. •
For the first model I have hypothesized the model y= a
1
x
2
+a
2
x+a
3
and used the following code to fit the data into the model and the found coefficient and errors are listed below. % Hypothesing funtion y= a1x*x+a2x+a3 for datase1 model1
xl=length(x1);
A=[x1.*x1 x1 ones(xl,1)];
B=y1;
coefficient=inv(A'*A)*A'*B
y_model1=A*coefficient;
figure
hold on plot(x1,y1,
'*'
)
plot(x1,y_model1,
'-'
)
title(
'Fitting Dataset 1'
);
legend(
'dataset 1'
,
'Model 1'
)
hold off
err=((y1-y_model1)./y_model1)'*((y1-y_model1)./y_model1)
coefficient = -33.5011 43.6383 4.5865 err = 0.0072 •
Now for the dataset 2 I have hypothesized the function y= a
1
+a
2
sin(x) and the found coefficients and error are listed below. % Hypothesing funtion y=a1+a2sin(x)for datase2 model2
xl=length(x1);
A=[ones(xl,1) sin(x2)];
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
B=(y2);
coefficient3=inv(A'*A)*A'*B
y_model4=A*coefficient3;
figure
hold on plot(x2,y2,
'*'
)
plot(x2,y_model4,
'-'
)
title(
'Fitting Dataset 2'
);
legend(
'dataset 2'
,
'Model 2'
)
hold off
err=((y2-y_model4)./y_model4)'*((y2-y_model4)./y_model4) coefficient3 = 11.6618 12.1233 err = 0.5590 •
For the dataset 3 I have hypothesized the model y= a
1
e
a2x
and I found the following values of co efficient and error. xl=length(x1);
A=[ones(xl,1) x3];
B=log(y3);
coefficient5=inv(A'*A)*A'*B
y_model6=exp(coefficient5(1,:))*exp(coefficient5(2,:)*x3);
figure
hold on plot(x3,y3,
'*'
)
plot(x3,y_model6,
'-'
)
title(
'Fitting Dataset 3'
);
legend(
'dataset 3'
,
'Model 1'
)
hold off
err=((y3-y_model6)./y_model6)'*((y3-y_model6)./y_model6) coefficient5 = 0.9759 3.3698 err = 0.9118
Problem 3 Based on the error and fit quality as seen in the solutions to problem 2, hypothesize refined (second) models that can potentially reduce the fit error. Find the best-fit parameters for the second set of models and the fitting errors. Draw three plots that show the comparison between the first model and the corresponding observation data for each set. Now in order to improve the model and reduce the error I have hypothesized the new function that can closely fit into our model. •
For the first dataset I have hypothesized the model y= a
1
x
3
+a
2
x
2
+a
3
x+a
4
. Using this function I have found following coefficients and the errors. % Hypothesing funtion y= a1x*x*x+a2x*x+a3x+a4 for datase1 model1
A=[x1.*x1.*x1 x1.*x1 x1 ones(xl,1)];
B=y1;
coefficient1=inv(A'*A)*A'*B
y_model2=A*coefficient1;
figure
hold on plot(x1,y1,
'*'
)
plot(x1,y_model2,
'-'
)
title(
'Fitting Dataset 1'
);
legend(
'dataset 1'
,
'Model 2'
)
hold off
err=((y1-y_model2)./y_model2)'*((y1-y_model2)./y_model2)
coefficient1 =
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
-0.9141 -32.1221 43.0923 4.6286 err = 0.0061 •
For the dataset 2 I have hypothesized new model y=a1x^4+a2x^3+a3x^2+a4x+a5. Found values for the coefficient and error is listed below. % Hypothesing funtion y=a1x^4+a2x^3+a3x^2+a4x+a5 for datase2 model3
xl=length(x1);
A=[x2.*x2.*x2.*x2 x2.*x2.*x2 x2.*x2 x2 ones(xl,1)];
B=y2;
coefficient4=inv(A'*A)*A'*B
y_model5=A*coefficient4;
figure
hold on plot(x2,y2,
'*'
)
plot(x2,y_model5,
'-'
)
title(
'Fitting Dataset 2'
);
legend(
'dataset 2'
,
'Model 3'
)
hold off
err=((y2-y_model5)./y_model5)'*((y2-y_model5)./y_model5) coefficient4 = 71.1156 -147.0433 68.1293 17.2342 8.5955 err = 0.1540 •
For the dataset I have Hypothesized y= . Found values of coefficients and error are listed below. % Hypothesing funtion y=xsinh(x) for datase3 model2
xl=length(x1);
A=[x3 sinh(x3)];
B=y3;
coefficient6=inv(A'*A)*A'*B
y_model7=A*coefficient6;
figure
hold on plot(x3,y3,
'*'
)
plot(x3,y_model7,
'-'
)
title(
'Fitting Dataset 3'
);
legend(
'dataset 3'
,
'Model 2'
)
hold off
err=((y3-y_model7)./y_model7)'*((y3-y_model7)./y_model7)
coefficient6 = -188.0953 212.6065 err = 20.1249 Comparison between two Models.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Documents
Related Questions
Please do not rely too much on chatgpt, because its answer may be wrong. Please consider it carefully and give your own answer. You can borrow ideas from gpt, but please do not believe its answer.Very very grateful!Please do not rely too much on chatgpt, because its answer may be wrong. Please consider it carefully and give your own answer. You can borrow
ideas from gpt, but please do not believe its answer.Very very grateful!
arrow_forward
Please help me Matlab
arrow_forward
dated metncpdf
Thermodynamics An Engineering X
E Module2-chap2propertiesofpure x
O File
C:/Users/DANIEL/Desktop/300L%202ND%20SEMESTER%20MATERIALS/Module2-chap2propertiesofpuresubstances-130703012604 phpap.
ID Page view
A Read aloud
V Draw
H Highlight
O Erase
40
MEC 451 - THERMODYNAMICS
Faculty of Mechanical Engineering, UITM
Supplementary Problems
The pressure in an automobile tire depends on the temperature of the air
in the tire. When the air temperature is 25°C, the pressure gage reads 210
kRa. If the volume of the tire is 0.025 m3, Cetermine the pressure rise in
the tire when the air temperature in the tire rises to 50°C. Also, determine
the amount of air that must be bled off to restore pressure to its original
value at this temperature. Assume the atmospheric pressure is 100 kPa.
[ 26 kPa, 0.007 kg]
1.
A 6 4 2:57 PM
Lucky CORER
144
Tum lock
314
%
8
1/2
24
6
1/4
23
T
K
F
pause
B
arrow_forward
permanent-magnet (pm) genera x
Bb Blackboard Learn
L STAND-ALONE.mp4 - Google Dri x
O Google Drive: ülwgjuó jc lis u
O ME526-WindEnergy-L25-Shuja.p x
O File | C:/Users/Administrator/Desktop/KFUPM%20Term%232/ME526/ME526-WindEnergy-L25-Shuja.pdf
(D Page view
A Read aloud
T) Add text
V Draw
Y Highlight
O Erase
17
of 26
Wind Farms
Consider the arrangement of three wind turbines in the following schematic in which wind
turbine C is in the wakes of turbines A and B.
Given the following:
- Uo = 12 m/s
A
-XẠC = 500 m
-XBC = 200 m
- z = 60 m
- Zo = 0.3 m
U.
-r, = 20 m
B
- CT = 0.88
Compute the total velocity deficit, udef(C) and the velocity at wind turbine C, namely Vc.
Activate Windows
Go to Settings to activate Windows.
Wind Farms (Example Answer)
5:43 PM
A 4)) ENG
5/3/2022
I!
arrow_forward
Problem 1: You are working in a consulting company that does a lot of hand calculations for designs in
Aerospace Industry for mechanical, thermal, and fluidic systems. You took the Virtual engineering
course, and you want to convince your boss and the team you work to move to modelling and simulation
in computers using a certain software (Ansys, Abaqus, etc). Discuss the benefits and pitfalls of computer
based models used within an industrial environment to solve problems in engineering.
arrow_forward
Return to
Required information
Sometimes equations can be developed and practical problems solved by knowing nothing more than the dimensions of
the key parameters. For example, consider the heat loss through a window in a building. Window efficiency is rated in
terms of R value, which has the unit of ft2-hr-F/Btu. A certain manufacturer offers a double-pane window with R=2.5 and
also a triple-pane window with R=3.4. Both windows are 3.5 ft by 5 ft. On a given winter day, the temperature difference
between the inside and outside is 45°F.
Assume that a homeowner buys 20 such triple-pane windows for the house. A typical winter equals about 120 heating days at AT =
45°F. Each triple-pane window costs $85 more than a double-pane window. Ignoring interest and inflation, how many years will it take
the homeowner to make up the additional cost of the triple-pane windows from heating bill savings?
9.5 years
S
MacBook Air
!
arrow_forward
Projects A and B are mutually exclusive. The minimum attractive rate of return (MARR) is 12%.
Using rate of return analysis, which project should be selected?
If the image fails to load here, go to https://www.dropbox.com/s/ld6wctqieu8jgwp/ROR.jpg
Year
0
1
2
3
4
ROR
A
- $750
$200
$200
$200
$600
17.68%
B
- $1,150
$300
$350
$400
$700
16.44%
O Project A
O Project B
O Both Project A and B
O Select none of the project.
O Insufficient information to make a decision.
B-A
- $400
$100
$150
$200
$100
13.69%
arrow_forward
Τρ
סוי
D2L Notes de cours 2 - MA...
D2L Solutions d'examen -...
B https://uottawa.brights...
ChatGPT
← Homework 4 - Fall 2024
Question 2 of 6
<
View Policies
education.wiley.com
ELG 3736 - Google Docs
On mesure la traînée s...
WP Homework 4 - Fall 2024
X W Question 2 of 6 - Hom...
- / 20
0
Current Attempt in Progress
The force P, which is applied to the 15.6-kg block initially at rest, varies linearly with the time as indicated. If the coefficients of static
and kinetic friction between the block and the horizontal surface are 0.38 and 0.30, respectively, determine the velocity of the block
when t = 3.7 s.
15.6 kg
93
P
P. N
Hg=
= 0.38
=0.30
0
S
3.7
Answer: v= i
eTextbook and Media
Save for Later
m/s
Attempts: 0 of 1 used
Submit Answer
Π
-120
arrow_forward
I need help solving this problem.
arrow_forward
Τρ
סוי
D2L Notes de cours 2 - MA...
D2L Solutions d'examen -...
B https://uottawa.brights...
ChatGPT
← Homework 4 - Fall 2024
Question 5 of 6
<
View Policies
education.wiley.com
ELG 3736 - Google Docs
On mesure la traînée s...
WP Homework 4 - Fall 2024
X W Question 5 of 6 - Hom...
- / 20
0
Current Attempt in Progress
If the center of the ping-pong ball is to clear the net as shown, at what height h should the ball be horizontally served? Also determine
h2. The coefficient of restitution for the impacts between ball and table is e = 0.71, and the radius of the ball is r = 0.75 in.
T
✓
Answers:
h =
in.
h2=
eTextbook and Media
Save for Later
in.
Attempts: 0 of 1 used
Submit Answer
arrow_forward
Motiyo
Add explanation
arrow_forward
Τρ
סוי
D2L Notes de cours 2 - MA...
D2L Solutions d'examen -...
B https://uottawa.brights...
ChatGPT
← Homework 4 - Fall 2024
Question 1 of 6
View Policies
>
education.wiley.com
ELG 3736 - Google Docs
On mesure la traînée s...
WP Homework 4 - Fall 2024
X W Question 1 of 6 - Hom...
- / 20
0
Current Attempt in Progress
The spring of modulus k = 203 N/m is compressed a distance of 300 mm and suddenly released with the system at rest. Determine the
absolute velocities of both masses (positive if to the right, negative if to the left) when the spring is unstretched. Neglect friction.
k
2 kg
= 203 N/m
wwwwww
5.6 kg
Answers:
2kg mass,
v=
5.6kg mass,
v =
Hi
eTextbook and Media
Save for Later
m/s
m/s
Attempts: 0 of 1 used Submit Answer
arrow_forward
You are a biomedical engineer working for a small orthopaedic firm that fabricates rectangular shaped fracture
fixation plates from titanium alloy (model = "Ti Fix-It") materials. A recent clinical report documents some problems with the plates
implanted into fractured limbs. Specifically, some plates have become permanently bent while patients are in rehab and doing partial
weight bearing activities.
Your boss asks you to review the technical report that was generated by the previous test engineer (whose job you now have!) and used to
verify the design. The brief report states the following... "Ti Fix-It plates were manufactured from Ti-6Al-4V (grade 5) and machined into
solid 150 mm long beams with a 4 mm thick and 15 mm wide cross section. Each Ti Fix-It plate was loaded in equilibrium in a 4-point bending
test (set-up configuration is provided in drawing below), with an applied load of 1000N. The maximum stress in this set-up was less than the
yield stress for the Ti-6Al-4V…
arrow_forward
HW_5_01P.pdf
PDF
File | C:/Users/Esther/Downloads/HW_5_01P.pdf
2 Would you like to set Microsoft Edge as your default browser?
Set as default
To be most productive with Microsoft Edge, finish setting up your
Complete setup
Maybe later
browser.
(D Page view A Read aloud V Draw
7 Highlight
2
of 3
Erase
5. Two cables are tied to the 2.0 kg ball shown below. The ball revolves in a horizontal
circle at constant speed. (Hint: You will need to use some geometry and properties of
triangles and their angles!)
60°
1.0 m
60°
© 2013 Pearson Education, Inc.
(a) For what speed is the tension the same in both cables?
(b) What is the tension?
2.
2:04 PM
O Type here to search
C A
2/9/2021
(8)
arrow_forward
iPhone -...
blem Set 1
Question 1 of 10
View Policies
Current Attempt in Progress
X =
y =
Electric C...
Z=
I
eTextbook and Media
Save for Later
in https://m...
education.wiley.com
National...
The force, F, of the wind blowing against a building is given by F = CopV²A/2, where Vis the wind speed, p the density of the air, A the
cross-sectional area of the building, and CD is a constant termed the drag coefficient. Determine the dimensions of the drag coefficient,
x, y, and z in the expression CD = M*LYT.
i
WP Problem...
W Support -...
WP NWP Ass...
-/10 E
Start Pag
Attempts: 0 of 5 used
Submit Answer
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you

Principles of Heat Transfer (Activate Learning wi...
Mechanical Engineering
ISBN:9781305387102
Author:Kreith, Frank; Manglik, Raj M.
Publisher:Cengage Learning
Related Questions
- Please do not rely too much on chatgpt, because its answer may be wrong. Please consider it carefully and give your own answer. You can borrow ideas from gpt, but please do not believe its answer.Very very grateful!Please do not rely too much on chatgpt, because its answer may be wrong. Please consider it carefully and give your own answer. You can borrow ideas from gpt, but please do not believe its answer.Very very grateful!arrow_forwardPlease help me Matlabarrow_forwarddated metncpdf Thermodynamics An Engineering X E Module2-chap2propertiesofpure x O File C:/Users/DANIEL/Desktop/300L%202ND%20SEMESTER%20MATERIALS/Module2-chap2propertiesofpuresubstances-130703012604 phpap. ID Page view A Read aloud V Draw H Highlight O Erase 40 MEC 451 - THERMODYNAMICS Faculty of Mechanical Engineering, UITM Supplementary Problems The pressure in an automobile tire depends on the temperature of the air in the tire. When the air temperature is 25°C, the pressure gage reads 210 kRa. If the volume of the tire is 0.025 m3, Cetermine the pressure rise in the tire when the air temperature in the tire rises to 50°C. Also, determine the amount of air that must be bled off to restore pressure to its original value at this temperature. Assume the atmospheric pressure is 100 kPa. [ 26 kPa, 0.007 kg] 1. A 6 4 2:57 PM Lucky CORER 144 Tum lock 314 % 8 1/2 24 6 1/4 23 T K F pause Barrow_forward
- permanent-magnet (pm) genera x Bb Blackboard Learn L STAND-ALONE.mp4 - Google Dri x O Google Drive: ülwgjuó jc lis u O ME526-WindEnergy-L25-Shuja.p x O File | C:/Users/Administrator/Desktop/KFUPM%20Term%232/ME526/ME526-WindEnergy-L25-Shuja.pdf (D Page view A Read aloud T) Add text V Draw Y Highlight O Erase 17 of 26 Wind Farms Consider the arrangement of three wind turbines in the following schematic in which wind turbine C is in the wakes of turbines A and B. Given the following: - Uo = 12 m/s A -XẠC = 500 m -XBC = 200 m - z = 60 m - Zo = 0.3 m U. -r, = 20 m B - CT = 0.88 Compute the total velocity deficit, udef(C) and the velocity at wind turbine C, namely Vc. Activate Windows Go to Settings to activate Windows. Wind Farms (Example Answer) 5:43 PM A 4)) ENG 5/3/2022 I!arrow_forwardProblem 1: You are working in a consulting company that does a lot of hand calculations for designs in Aerospace Industry for mechanical, thermal, and fluidic systems. You took the Virtual engineering course, and you want to convince your boss and the team you work to move to modelling and simulation in computers using a certain software (Ansys, Abaqus, etc). Discuss the benefits and pitfalls of computer based models used within an industrial environment to solve problems in engineering.arrow_forwardReturn to Required information Sometimes equations can be developed and practical problems solved by knowing nothing more than the dimensions of the key parameters. For example, consider the heat loss through a window in a building. Window efficiency is rated in terms of R value, which has the unit of ft2-hr-F/Btu. A certain manufacturer offers a double-pane window with R=2.5 and also a triple-pane window with R=3.4. Both windows are 3.5 ft by 5 ft. On a given winter day, the temperature difference between the inside and outside is 45°F. Assume that a homeowner buys 20 such triple-pane windows for the house. A typical winter equals about 120 heating days at AT = 45°F. Each triple-pane window costs $85 more than a double-pane window. Ignoring interest and inflation, how many years will it take the homeowner to make up the additional cost of the triple-pane windows from heating bill savings? 9.5 years S MacBook Air !arrow_forward
- Projects A and B are mutually exclusive. The minimum attractive rate of return (MARR) is 12%. Using rate of return analysis, which project should be selected? If the image fails to load here, go to https://www.dropbox.com/s/ld6wctqieu8jgwp/ROR.jpg Year 0 1 2 3 4 ROR A - $750 $200 $200 $200 $600 17.68% B - $1,150 $300 $350 $400 $700 16.44% O Project A O Project B O Both Project A and B O Select none of the project. O Insufficient information to make a decision. B-A - $400 $100 $150 $200 $100 13.69%arrow_forwardΤρ סוי D2L Notes de cours 2 - MA... D2L Solutions d'examen -... B https://uottawa.brights... ChatGPT ← Homework 4 - Fall 2024 Question 2 of 6 < View Policies education.wiley.com ELG 3736 - Google Docs On mesure la traînée s... WP Homework 4 - Fall 2024 X W Question 2 of 6 - Hom... - / 20 0 Current Attempt in Progress The force P, which is applied to the 15.6-kg block initially at rest, varies linearly with the time as indicated. If the coefficients of static and kinetic friction between the block and the horizontal surface are 0.38 and 0.30, respectively, determine the velocity of the block when t = 3.7 s. 15.6 kg 93 P P. N Hg= = 0.38 =0.30 0 S 3.7 Answer: v= i eTextbook and Media Save for Later m/s Attempts: 0 of 1 used Submit Answer Π -120arrow_forwardI need help solving this problem.arrow_forward
- Τρ סוי D2L Notes de cours 2 - MA... D2L Solutions d'examen -... B https://uottawa.brights... ChatGPT ← Homework 4 - Fall 2024 Question 5 of 6 < View Policies education.wiley.com ELG 3736 - Google Docs On mesure la traînée s... WP Homework 4 - Fall 2024 X W Question 5 of 6 - Hom... - / 20 0 Current Attempt in Progress If the center of the ping-pong ball is to clear the net as shown, at what height h should the ball be horizontally served? Also determine h2. The coefficient of restitution for the impacts between ball and table is e = 0.71, and the radius of the ball is r = 0.75 in. T ✓ Answers: h = in. h2= eTextbook and Media Save for Later in. Attempts: 0 of 1 used Submit Answerarrow_forwardMotiyo Add explanationarrow_forwardΤρ סוי D2L Notes de cours 2 - MA... D2L Solutions d'examen -... B https://uottawa.brights... ChatGPT ← Homework 4 - Fall 2024 Question 1 of 6 View Policies > education.wiley.com ELG 3736 - Google Docs On mesure la traînée s... WP Homework 4 - Fall 2024 X W Question 1 of 6 - Hom... - / 20 0 Current Attempt in Progress The spring of modulus k = 203 N/m is compressed a distance of 300 mm and suddenly released with the system at rest. Determine the absolute velocities of both masses (positive if to the right, negative if to the left) when the spring is unstretched. Neglect friction. k 2 kg = 203 N/m wwwwww 5.6 kg Answers: 2kg mass, v= 5.6kg mass, v = Hi eTextbook and Media Save for Later m/s m/s Attempts: 0 of 1 used Submit Answerarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Principles of Heat Transfer (Activate Learning wi...Mechanical EngineeringISBN:9781305387102Author:Kreith, Frank; Manglik, Raj M.Publisher:Cengage Learning

Principles of Heat Transfer (Activate Learning wi...
Mechanical Engineering
ISBN:9781305387102
Author:Kreith, Frank; Manglik, Raj M.
Publisher:Cengage Learning