Homework_3
m
keyboard_arrow_up
School
Pennsylvania State University *
*We aren’t endorsed by this school
Course
431
Subject
Mechanical Engineering
Date
Jan 9, 2024
Type
m
Pages
3
Uploaded by ProfessorHornetMaster1035
clc;
clear;
% Define the file name and open the file
file_name = 'ME431 Homework 3 Ford Engine Data Fall 2023.txt';
fileID = fopen(file_name, 'r');
header = fgetl(fileID);
% Read the data from the file, starting from the second line
data = fscanf(fileID, '%f %f %f', [3, Inf]);
fclose(fileID);
% Transpose the data to store it as vertical columns
data = data';
crank_angle = data(:, 1);
pressure = data(:, 2);
volume = data(:, 3);
gamma = 1.27;
% Adjust the crank angle data by adding 43 degrees
crank_angle_adjusted = crank_angle;
figure(1);
% Subplot 1: Pressure (P) versus adjusted crank angle
subplot(2, 1, 1);
plot(crank_angle_adjusted, pressure, 'b');
xlabel('Crank Angle (degrees)');
ylabel('Pressure (P)');
title('Pressure (P) versus Crank Angle');
% Subplot 2: Volume (V) versus adjusted crank angle
subplot(2, 1, 2);
plot(crank_angle_adjusted, volume, 'r');
xlabel('Crank Angle (degrees)');
ylabel('Volume (V)');
title('Volume (V) versus Crank Angle');
% 2. P versus V
figure(2);
plot(volume, pressure, 'g');
xlabel('Volume (V)');
ylabel('Pressure (P)');
title('P versus V');
% 3. log(P) versus V
figure(3);
semilogy(volume, log(pressure), 'm');
xlabel('Volume (V)');
ylabel('log(P)');
title('log(P) versus V');
V_c = volume(44);
fprintf('Clearence volume: %.2f Liters\n', V_c);
%V_d = V_BC - V_c
V_d = volume(224) - V_c;
fprintf('Volume displaced: %.2f Liters\n', V_d);
% compresssion ratio =
VBDC/VTDC
cr = volume(224)/V_c;
fprintf('Compression ratio: %.2f \n', cr);
evo = 126; %degrees
fprintf('Exhaust valve opening: %.2f degrees\n', evo);
ivo = -10; %degrees
fprintf('Intake valve opening: %.2f degrees\n', ivo);
%% Problem 4
% Define the range of crank angles
start_angle = -40;
% Start angle in degrees
end_angle = 100;
% End angle in degrees
% Find the indices within the specified range
indices = (crank_angle_adjusted >= start_angle) & (crank_angle_adjusted <=
end_angle);
% Extract the data within the specified range
selected_crank_angle = crank_angle_adjusted(indices);
selected_pressure = pressure(indices);
selected_volume = volume(indices);
% Calculate PVγ within the specified range
PV_gamma = selected_pressure .* (selected_volume.^gamma);
% Create the Harrington Plot
figure;
plot(selected_crank_angle, PV_gamma, 'b');
xlabel('Crank Angle (degrees)');
ylabel('PV^\gamma');
title('Harrington Plot');
% Find the point on the Harrington plot corresponding to SOC and EOE
SOC_index = find(PV_gamma == (PV_gamma(40)), 1, 'first');
EOE_index = find(PV_gamma(SOC_index:end) == (PV_gamma(80)), 1, 'first');
% Calculate θ_ο (spark firing angle) and ∆θ (burn duration)
theta_o = selected_crank_angle(SOC_index);
delta_theta = selected_crank_angle(SOC_index + EOE_index - 1) - theta_o;
fprintf('Spark Firing Angle (θ_ο): %.2f degrees\n', theta_o);
fprintf('Burn Duration (∆θ): %.2f degrees\n', delta_theta);
%% Problem 5
% Convert pressure from bar to pascals
pressure_pa = pressure * 1e5;
% Conversion from bar to pascals
% Convert volume from liters to cubic meters
volume_m3 = volume * 0.001;
% Conversion from liters to cubic meters
% Define the crank angles for the intake and exhaust strokes
start_intake_angle = crank_angle(224);
end_intake_angle = crank_angle(360+44);
start_exhaust_angle = crank_angle(end_intake_angle + 180);
end_exhaust_angle = crank_angle(719);
% Identify the intake and exhaust strokes using crank angle data
intake_stroke = (crank_angle >= start_intake_angle) & (crank_angle <=
end_intake_angle);
exhaust_stroke = (crank_angle >= start_exhaust_angle) & (crank_angle <=
end_exhaust_angle);
% Calculate the Indicated Work (W_ind) using the pressure and volume data in SI
units
ind_work = trapz(volume_m3, pressure_pa);
% Calculate the Pumping Work (W_pump) for the intake and exhaust strokes in SI
units
pump_work = -trapz(volume_m3(intake_stroke | exhaust_stroke),
pressure_pa(intake_stroke | exhaust_stroke));
% Calculate the Net Work (W_net) in SI units
net_work = ind_work - pump_work;
% Calculate Mechanical Efficiency (η_mech)
mechanical_efficiency = net_work / ind_work;
% Display the results
fprintf('Indicated Work: %.2f J\n', ind_work);
fprintf('Pumping Work: %.2f J\n', pump_work);
fprintf('Net Work: %.2f J\n', net_work);
fprintf('Mechanical Efficiency: %.2f\n', mechanical_efficiency);
% Convert engine displacement from liters to cubic meters
V_d = V_d * 0.001;
% Conversion to cubic meters
% Calculate IMEP in pascals (Pa)
IMEP_pa = ind_work / V_d;
IMEP_kpa = IMEP_pa / 1000;
% Display the IMEP in both pascals and kilopascals
fprintf('IMEP (kPa): %.2f kPa\n', IMEP_kpa);
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
Use MATLAB please make code for this.
arrow_forward
Can you write me a program manuscript using geometric definition on FAPT language.
The starting point is P1 and starts where the blue dot is. P1 = 0,0
arrow_forward
Could you change the lines in to two lines just like it shows in the graph . Make it exactly those two lines. Keep the colors and the same.
Use this code on MATLAB and fix it.
% Sample data for Diesel and Petrol cars
carPosition = linspace(1, 60, 50); % Assumed positions of cars
% Define your seed here
seed = 50;
rand('seed',seed); % Set the seed for reproducibility
% Assumed CO2 emissions for Diesel and Petrol
CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel
CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol
% Fit polynomial curves with a reduced degree of 2
pDiesel = polyfit(carPosition, CO2Diesel, 2);
pPetrol = polyfit(carPosition, CO2Petrol, 2);
% Generate points for best fit lines
fitDiesel = polyval(pDiesel, carPosition);
fitPetrol = polyval(pPetrol, carPosition);
% Combined best fit
combinedFit = (fitDiesel + fitPetrol) / 2;
% Plotting the data
figure; hold on;
% Define the split index and shorten…
arrow_forward
I need help with the purple line the line that you see one the graph on the picture needs to be on the graph.
Use this code to add the purple line and make sure it’s crossing the orange line. Please make sure the lines are positioned the same way it is shown on the picture with the graph.
Use this code on MATLAB and add the purple line.
% Sample data for Diesel and Petrol cars
carPosition = linspace(1, 60, 50); % Assumed positions of cars
% Use the 'seed' function instead of 'rng'
seed = 50; % Define your seed here
rand('seed',seed);
% Assumed CO2 emissions for Diesel and Petrol
CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel
CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol
% Fit polynomial curves with a reduced degree of 2
pDiesel = polyfit(carPosition, CO2Diesel, 2);
pPetrol = polyfit(carPosition, CO2Petrol, 2);
% Generate points for best fit lines
fitDiesel = polyval(pDiesel, carPosition);…
arrow_forward
I’m making the graph that you see in the picture but the code that I’m using makes the line with to many curves. Could you make the lines look like the one that you see on the graph. Don’t change the color just make it with a little bit less curves like you see in the picture.
Use this code on MATLAB and fix it.
% Sample data for Diesel and Petrol cars
carPosition = linspace(1, 60, 50); % Assumed positions of cars
% Fix the random seed for reproducibility
rng(50);
% Assumed CO2 emissions for Diesel and Petrol
CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel
CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol
% Fit polynomial curves
pDiesel = polyfit(carPosition, CO2Diesel, 3);
pPetrol = polyfit(carPosition, CO2Petrol, 3);
% Generate points for best fit lines
fitDiesel = polyval(pDiesel, carPosition);
fitPetrol = polyval(pPetrol, carPosition);
% Combined best fit
combinedFit = (fitDiesel + fitPetrol) / 2;…
arrow_forward
I’m using this code in MATLAB but for some odd reason every time I run it on MATLAB I keep on getting a different graphs. In the picture that shows two different graphs are from the same code, but I need to it to look like the picture that has one graph. Could you please fix it. To make it look like the picture that has one graph?
Here is the code:
% Sample data for Diesel and Petrol
carPosition = linspace(1, 60, 50); % Assumed positions of cars
CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel
CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol
% Fit polynomial curves
pDiesel = polyfit(carPosition, CO2Diesel, 3);
pPetrol = polyfit(carPosition, CO2Petrol, 3);
% Generate points for best fit lines
fitDiesel = polyval(pDiesel, carPosition);
fitPetrol = polyval(pPetrol, carPosition);
% Plotting the data
figure;
hold on;
scatter(carPosition, CO2Diesel, 'o', 'MarkerEdgeColor', [1 0.5 0]); % Diesel data…
arrow_forward
Can you help me with this problem?
P1 is where the blue dot is
arrow_forward
Hello I’m trying to make the graph that you see in the picture, I’m trying the exact copy of that graph using this code but I’m having a hard time doing that. Could you change the code so that it looks like the graph that you see on the picture using MATLAB, please send the code when you are finished.
% Sample data for Diesel and Petrol cars
carPosition = linspace(1, 60, 50); % Assumed positions of cars
% Fix the random seed for reproducibility
rng(45);
% Assumed positions of cars
CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel
CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol
% Fit polynomial curves
pDiesel = polyfit(carPosition, CO2Diesel, 3);
pPetrol = polyfit(carPosition, CO2Petrol, 3);
% Generate points for best fit lines
fitDiesel = polyval(pDiesel, carPosition);
fitPetrol = polyval(pPetrol, carPosition);
% Plotting the data
figure; hold on;
scatter(carPosition, CO2Diesel, 'o', 'MarkerEdgeColor', [1 0.5…
arrow_forward
W
Document1 - Microsoft Word (Product Activation Failed)
File
Home
Insert
Page Layout
References
Mailings
Review
View
a ?
A Find -
A
% Cut
-
=。 青
Calibri (Body) - 11
A A
Aa
Aal
AaBbCcDc AaBbCcDc AaBbC AaBbCc AaB AaBbCcL
E Copy
ae Replace
Paste
BI U
abe x, x*
A
ab
A
I Normal
I No Spaci. Heading 1
Change
Styles
.
Heading 2
Title
Subtitle
W
A Select -
Format Painter
Clipboard
Font
Paragraph
Styles
Editing
• 2. 1:.
I' 2: 1 : 3:1
• 4.I 5.1' 6.1'7
I'8: 1 9 ' 10.L· 11: 1 ' 12.'13 · L 14: 1· 15.1A L'17:1 18
PARTIAL DIFFERENTIAL EQUATIONS
PLEASE ANSWER ALL QUESTIONS
Consider the temperature distribution in a 2 x 1 rectangular plate as described in the figure below.
Show that the steady-state temperature distribution u (1, y) in the plate is given by
200
пя (1- у)
u (1, 3) = Esinh
:(1 +(-1)") sin -
sinh
n sinh
n=1
2
Calculate the steady-sate temperature at the centre of the plate.
Ice at 0°-
1
Ice at 0°
Ice at 0°
Boiling water at 100°
all
06:14 PM
2022-05-10
Page: 1 of 1
Words: 7
E EA E E E
100%…
arrow_forward
Hi I need help to make the line change into a different color, I half of the line to be orange and I need the other half of the line towards the end to be purple as shown in the picture. Also I need there be a box saying Diesel, petrol, diesel best fit, petrol best fit. This part is also shown in the graph.
Please use this code and fix it in MATLAB:
% Sample data for Diesel and Petrol cars
carPosition = linspace(1, 60, 50); % Assumed positions of cars
% Fix the random seed for reproducibility
rng(50);
% Assumed positions of cars
CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel
CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol
% Fit polynomial curves
pDiesel = polyfit(carPosition, CO2Diesel, 3);
pPetrol = polyfit(carPosition, CO2Petrol, 3);
% Generate points for best fit lines
fitDiesel = polyval(pDiesel, carPosition);
fitPetrol = polyval(pPetrol, carPosition);
% Combine the best fit lines
combinedFit =…
arrow_forward
MULTIPLE CHOICE -The answer is one of the options below please solve carefully and circle the correct option Please write clear .
arrow_forward
There is a small space between the orange and purple line could you please connect the two lines together also can you please make the purple line shorter and then connect the purple line to the orange line, please take out the box that says “Diesel, petrol, Diesel best fit, petrol best fit”. Also when ever I run this code the graph shows up but there are still errors that comes up could you please fix them when you are running this on MATLAB.
Please use this code on MATLAB and fix it.
% Sample data for Diesel and Petrol cars
carPosition = linspace(1, 60, 50); % Assumed positions of cars
% Fix the random seed for reproducibility
rng(50);
% Assumed CO2 emissions for Diesel and Petrol
CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel
CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol
% Fit polynomial curves
pDiesel = polyfit(carPosition, CO2Diesel, 3);
pPetrol = polyfit(carPosition, CO2Petrol, 3);
% Generate…
arrow_forward
Engr 215 Matlab
Fahrenheit to Celsius using multiple statements
Given a Fahrenheit value temperatureFahrenheit, write a statement that assigns temperatureCelsius with the equivalent Celsius value.
While the equation is C = 5/9 * (F - 32), as an exercise use two statements, the first of which is "fractionalMultiplier = 5/9;"]
arrow_forward
(xo, Yo)
Ay = Number
(x,y)
CC) 00
BY SA
USask Engineering
Given the above graph plotting y position against a position, where 0 = 0 m, 30 = -4 m, z = 5 m, and y0 = 0 m, what the change in vertical position
over this time interval? Write your answer as an integer.
m
→X
arrow_forward
R5 please answer all problems and also write out all steps and reasoning. The second image shows the correct answers.
arrow_forward
sample calculations
目
File Edit View Insert Format Data To
100%
$ % .0
.00 12:
fx |
A
1
Variable
Value
Units
diameter
height
m
4
volume
m^3
3
The image above shows a section of a Google sheet. What formula should be written in cell
B4 to calculate the volume of a cylinder with a diameter value in B2 and height in B3?
a) =0.25*PI()*B2^2 * B3
b) =PI()*B2^2 * B3
c) =pi*diameter^2 * height
d) =PI*B2^2 * B3
3 5
arrow_forward
Handwriting not allow please
arrow_forward
I need help with simulink. It is my first time using simulink. I am trying to make a simulink program turning on the LED on the board for 10sec for an Arduino Mega 2560. I have attached an image of what I tried to do. After I run, it just says no diagnostic. How do I know if I did this correctly or not?
arrow_forward
Keep the same colors the same graph, basically keep everything the same just make the line with a small curve just as shown on the picture
Keep everything the same just make the line less curvy please do not change the colors of the line and the circles do not change anything besides the curve of the line.
Use this code on MATLAB and fix it.
% Sample data for Diesel and Petrol cars
carPosition = linspace(1, 60, 50); % Assumed positions of cars
% Use the 'seed' function instead of 'rng'
seed = 50; % Define your seed here
rand('seed',seed);
% Assumed CO2 emissions for Diesel and Petrol
CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel
CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol
% Fit polynomial curves with a reduced degree of 2
pDiesel = polyfit(carPosition, CO2Diesel, 2);
pPetrol = polyfit(carPosition, CO2Petrol, 2);
% Generate points for best fit lines
fitDiesel = polyval(pDiesel, carPosition);…
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you

Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press

Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON

Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education

Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY

Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning

Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY
Related Questions
- Use MATLAB please make code for this.arrow_forwardCan you write me a program manuscript using geometric definition on FAPT language. The starting point is P1 and starts where the blue dot is. P1 = 0,0arrow_forwardCould you change the lines in to two lines just like it shows in the graph . Make it exactly those two lines. Keep the colors and the same. Use this code on MATLAB and fix it. % Sample data for Diesel and Petrol cars carPosition = linspace(1, 60, 50); % Assumed positions of cars % Define your seed here seed = 50; rand('seed',seed); % Set the seed for reproducibility % Assumed CO2 emissions for Diesel and Petrol CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol % Fit polynomial curves with a reduced degree of 2 pDiesel = polyfit(carPosition, CO2Diesel, 2); pPetrol = polyfit(carPosition, CO2Petrol, 2); % Generate points for best fit lines fitDiesel = polyval(pDiesel, carPosition); fitPetrol = polyval(pPetrol, carPosition); % Combined best fit combinedFit = (fitDiesel + fitPetrol) / 2; % Plotting the data figure; hold on; % Define the split index and shorten…arrow_forward
- I need help with the purple line the line that you see one the graph on the picture needs to be on the graph. Use this code to add the purple line and make sure it’s crossing the orange line. Please make sure the lines are positioned the same way it is shown on the picture with the graph. Use this code on MATLAB and add the purple line. % Sample data for Diesel and Petrol cars carPosition = linspace(1, 60, 50); % Assumed positions of cars % Use the 'seed' function instead of 'rng' seed = 50; % Define your seed here rand('seed',seed); % Assumed CO2 emissions for Diesel and Petrol CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol % Fit polynomial curves with a reduced degree of 2 pDiesel = polyfit(carPosition, CO2Diesel, 2); pPetrol = polyfit(carPosition, CO2Petrol, 2); % Generate points for best fit lines fitDiesel = polyval(pDiesel, carPosition);…arrow_forwardI’m making the graph that you see in the picture but the code that I’m using makes the line with to many curves. Could you make the lines look like the one that you see on the graph. Don’t change the color just make it with a little bit less curves like you see in the picture. Use this code on MATLAB and fix it. % Sample data for Diesel and Petrol cars carPosition = linspace(1, 60, 50); % Assumed positions of cars % Fix the random seed for reproducibility rng(50); % Assumed CO2 emissions for Diesel and Petrol CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol % Fit polynomial curves pDiesel = polyfit(carPosition, CO2Diesel, 3); pPetrol = polyfit(carPosition, CO2Petrol, 3); % Generate points for best fit lines fitDiesel = polyval(pDiesel, carPosition); fitPetrol = polyval(pPetrol, carPosition); % Combined best fit combinedFit = (fitDiesel + fitPetrol) / 2;…arrow_forwardI’m using this code in MATLAB but for some odd reason every time I run it on MATLAB I keep on getting a different graphs. In the picture that shows two different graphs are from the same code, but I need to it to look like the picture that has one graph. Could you please fix it. To make it look like the picture that has one graph? Here is the code: % Sample data for Diesel and Petrol carPosition = linspace(1, 60, 50); % Assumed positions of cars CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol % Fit polynomial curves pDiesel = polyfit(carPosition, CO2Diesel, 3); pPetrol = polyfit(carPosition, CO2Petrol, 3); % Generate points for best fit lines fitDiesel = polyval(pDiesel, carPosition); fitPetrol = polyval(pPetrol, carPosition); % Plotting the data figure; hold on; scatter(carPosition, CO2Diesel, 'o', 'MarkerEdgeColor', [1 0.5 0]); % Diesel data…arrow_forward
- Can you help me with this problem? P1 is where the blue dot isarrow_forwardHello I’m trying to make the graph that you see in the picture, I’m trying the exact copy of that graph using this code but I’m having a hard time doing that. Could you change the code so that it looks like the graph that you see on the picture using MATLAB, please send the code when you are finished. % Sample data for Diesel and Petrol cars carPosition = linspace(1, 60, 50); % Assumed positions of cars % Fix the random seed for reproducibility rng(45); % Assumed positions of cars CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol % Fit polynomial curves pDiesel = polyfit(carPosition, CO2Diesel, 3); pPetrol = polyfit(carPosition, CO2Petrol, 3); % Generate points for best fit lines fitDiesel = polyval(pDiesel, carPosition); fitPetrol = polyval(pPetrol, carPosition); % Plotting the data figure; hold on; scatter(carPosition, CO2Diesel, 'o', 'MarkerEdgeColor', [1 0.5…arrow_forwardW Document1 - Microsoft Word (Product Activation Failed) File Home Insert Page Layout References Mailings Review View a ? A Find - A % Cut - =。 青 Calibri (Body) - 11 A A Aa Aal AaBbCcDc AaBbCcDc AaBbC AaBbCc AaB AaBbCcL E Copy ae Replace Paste BI U abe x, x* A ab A I Normal I No Spaci. Heading 1 Change Styles . Heading 2 Title Subtitle W A Select - Format Painter Clipboard Font Paragraph Styles Editing • 2. 1:. I' 2: 1 : 3:1 • 4.I 5.1' 6.1'7 I'8: 1 9 ' 10.L· 11: 1 ' 12.'13 · L 14: 1· 15.1A L'17:1 18 PARTIAL DIFFERENTIAL EQUATIONS PLEASE ANSWER ALL QUESTIONS Consider the temperature distribution in a 2 x 1 rectangular plate as described in the figure below. Show that the steady-state temperature distribution u (1, y) in the plate is given by 200 пя (1- у) u (1, 3) = Esinh :(1 +(-1)") sin - sinh n sinh n=1 2 Calculate the steady-sate temperature at the centre of the plate. Ice at 0°- 1 Ice at 0° Ice at 0° Boiling water at 100° all 06:14 PM 2022-05-10 Page: 1 of 1 Words: 7 E EA E E E 100%…arrow_forward
- Hi I need help to make the line change into a different color, I half of the line to be orange and I need the other half of the line towards the end to be purple as shown in the picture. Also I need there be a box saying Diesel, petrol, diesel best fit, petrol best fit. This part is also shown in the graph. Please use this code and fix it in MATLAB: % Sample data for Diesel and Petrol cars carPosition = linspace(1, 60, 50); % Assumed positions of cars % Fix the random seed for reproducibility rng(50); % Assumed positions of cars CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol % Fit polynomial curves pDiesel = polyfit(carPosition, CO2Diesel, 3); pPetrol = polyfit(carPosition, CO2Petrol, 3); % Generate points for best fit lines fitDiesel = polyval(pDiesel, carPosition); fitPetrol = polyval(pPetrol, carPosition); % Combine the best fit lines combinedFit =…arrow_forwardMULTIPLE CHOICE -The answer is one of the options below please solve carefully and circle the correct option Please write clear .arrow_forwardThere is a small space between the orange and purple line could you please connect the two lines together also can you please make the purple line shorter and then connect the purple line to the orange line, please take out the box that says “Diesel, petrol, Diesel best fit, petrol best fit”. Also when ever I run this code the graph shows up but there are still errors that comes up could you please fix them when you are running this on MATLAB. Please use this code on MATLAB and fix it. % Sample data for Diesel and Petrol cars carPosition = linspace(1, 60, 50); % Assumed positions of cars % Fix the random seed for reproducibility rng(50); % Assumed CO2 emissions for Diesel and Petrol CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol % Fit polynomial curves pDiesel = polyfit(carPosition, CO2Diesel, 3); pPetrol = polyfit(carPosition, CO2Petrol, 3); % Generate…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY

Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press

Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON

Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education

Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY

Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning

Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY