ATF_PROJECT_1 (2)
docx
keyboard_arrow_up
School
Florida Atlantic University *
*We aren’t endorsed by this school
Course
4127
Subject
Mechanical Engineering
Date
Jan 9, 2024
Type
docx
Pages
6
Uploaded by ChancellorZebraPerson942
Matlab:
This is a program that will determine (a) the flow rate distribution in a loop network system by the Hardy-Cross method and (b) the total head at ach node. Parameters are given, and they are follows; allow for a maximum of ten loops with a maximum of ten lines in a loop, calculate the flow rates before the total head with respect to the give dimensions of the created program.
A test case 1 is given with known flow rates distribution and total head values; this given case will be tested with the created Matlab program, once this is tested and it function properly, it will be apply to the following pipe system where the values will be randomly generated.
MATLAB code for the first system of pipes
%Project1test.m
%EML 4127 (Applied Thermal Fluids)
%Manuel Armatrading & Mattew Lawrence
clear;
clc;
%Input/Known Data
NL = 3 %Number of Loops
NJ = [4 4 4] %Number of Lines in Each Loop
ID = [2 3 0 0;0 0 0 1;0 0 0 1] %Identifies Which Line is a Common Line
Qin = 10.8; %Flow Rate at inlet
EPSLN = 0.0001; %Maximum allowable difference in flow rates
g = 32.2; %Gravitational acceleration
p=1.94;
u=1.082*10^(-5);
e=.00085
D1 = 10/12; %Pipe # 1 Diameters (in Feet)
D2 = 12/12; %Pipe # 2 Diameters (in Feet)
D3 = 14/12; %Pipe # 3 Diameters (in Feet)
D4 = 16/12; %Pipe # 4 Diameters (in Feet)
%Assumes no minor losses
%Define matrices which describe pipe diameters and pipe lengths
ZL = [10560 15840 10560 15840; 15840 13200 10560 10560;...
15840 15840 15840 15840];
D = [D4 D2 D3 D4;D4 D3 D2 D4;D2 D1 D2 D2];
K= [0 0 0 0 ; 0 0 0 0 ; 0 0 0 0];
%Initial Guess for Flow Rates
Q = [3 1.5 -1.6 -4; 3.8 1.7 0.3 -3; 1.8 0.4 -1 -1.5] %Flow Rate (gpm)
%% ======================================================================%
%Start value for flow difference (1 was chosen randomly)
err=1;
%Index for the while loop
IW=0;
while err> EPSLN %Sets condition that as long as difference is
%greater than EPSNL the loop will run.
IW=IW+1;
for i=1:NL
for j=1:NJ
Re(i,j)=p*abs(Q(i,j))/(pi/4*(D(i,j))^2)*ZL(i,j)/u;
f(i,j)=1.325/(log(e/3.7/D(i,j)+5.74/(Re(i,j))^.9))^2;
dfdQ(i,j)=(13.69*(e/3.7/D(i,j)+5.74/(Re(i,j))^.9)^(-1))/...
((Re(i,j))^2*abs(Q(i,j))*log(e/...
3.7/D(i,j)+5.74/(Re(i,j))^.9));
A(i,j)=8*ZL(i,j)/(pi^2*g*(D(i,j))^5);
B(i,j)=(8*K(i,j))/(pi^2*g*(D(i,j))^4);
%Calculation of head loss
if Q(i,j)>0;
HF(i,j)=A(i,j)*(Q(i,j))^2*f(i,j)+B(i,j)*Q(i,j)^2;
DHDQ(i,j)=2*A(i,j)*Q(i,j)+...
A(i,j)*(Q(i,j))^2*dfdQ(i,j)+...
2*B(i,j)*Q(i,j)+B(i,j)*(Q(i,j))^2*dfdQ(i,j);
elseif Q(i,j)==0
HF(i,j)=0;
DHDQ(i,j)=0;
else
HF(i,j)=-(A(i,j)*(Q(i,j))^2*f(i,j)+B(i,j)*Q(i,j)^2);
DHDQ(i,j)=-(2*A(i,j)*Q(i,j)+...
A(i,j)*(Q(i,j))^2*dfdQ(i,j)+...
2*B(i,j)*Q(i,j)+B(i,j)*(Q(i,j))^2*dfdQ(i,j));
end
SHF(i)=sum(HF(i,:));
SDHDQ(i)=sum(DHDQ(i,:));
DELQ(i)=-SHF(i)/SDHDQ(i);
HFo(i,j)=HF(i,j);
end
end
for i=1:NL
for j=1:NJ
if ID(i,j)==0
NEWQ(i,j)=Q(i,j)+DELQ(i);
elseif ID(i,j)==911
NEWQ(i,j)=Q(i,j);
else
NEWQ(i,j)=Q(i,j)+DELQ(i)-DELQ(ID(i,j));
end
err=abs(NEWQ(i,j)-Q(i,j));
Q(i,j)=NEWQ(i,j); end
end
if IW>100
break
end
IW;
end
%% Total Head Calculation for each node %%
for i=1:NL
disp('enter head at node 1 of loop')
HPo(i)=input('')
HP(i,1)=HPo(i);
for j=1:NJ(i)
if j~=1
HP(i,j)=HP(i,j-1)-HFo(i,j-1);
end
end
HP
end
fid=fopen('Test_results.dat','w')
fprintf(fid,'TEST CASE RESULTS\n');
fprintf(fid,'\n\n');
fprintf(fid,'\n\n Flow Rate Distribution\n');
fprintf(fid,' LOOP # | LINE 1 LINE 2 LINE 3 LINE 4 \n');
fprintf(fid,'*****************************************************************
**********\n');
for i=1:NL
fprintf(fid, '\n%5.0f | ', i);
for j=1:NJ
fprintf(fid,'\t %7.3f ', Q(i,j) );
end
fprintf(fid, '\n');
end
fprintf(fid,'\n\n Head Loss at each node \n');
fprintf(fid,' LOOP # | NODE 1 NODE 2 NODE 3 NODE 4 \n');
fprintf(fid,'*****************************************************************
**********\n');
for i=1:NL
fprintf(fid, '\n%5.0f | ', i);
for j=1:NJ
fprintf(fid,'\t %7.3f ', HP(i,j) );
end
fprintf(fid, '\n');
end
fprintf(fid,'\n\n Numbers of Iterations :');
fprintf(fid,'%7.3f ', IW );
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
MATLAB code for the second system of pipes
%Project1.m
%EML 4127 (Applied Thermal Fluids)
%Manuel Armatrading and Mattew Lawrence clear clc
NL = 3; %Number of Loops
NJ = [5 4 4]; %Number of Lines in Each Loop
ID = [0 0 0 1 1; 1 1 0 0 0; 1 0 0 1 0];
%Identifies Which Line is a Common Line
Qin = 5; %Flow Rate at inlet
EPSLN = 0.0001; %Maximum allowable difference in flow rates
g = 32.2; %Gravitational acceleration
p=1.46;
u=1.082*10^(-5);
e=.00085;
D1 = 10/12; %Pipe # 1 Diameters (in Feet)
D2 = 10/12; %Pipe # 2 Diameters (in Feet)
D3 = 10/12; %Pipe # 3 Diameters (in Feet)
D4 = 10/12; %Pipe # 4 Diameters (in Feet)
D5 = 10/12;
D6 = 10/12;
D7 = 10/12;
D8 = 10/12;
D9 = 10/12;
D10= 10/12;
D11= 10/12;
D12= 10/12;
%Assumes no minor losses
%Define matrices' which describe pipe diameters and pipe lengths
ZL = [2000 2000 2000 1000 1000; 1000 1600 1000 1600 0; 1000 1600 1000 1600 0];
D = [D1 D3 D9 D7 D4; D4 D6 D5 D2 0; D7 D10 D8 D6 0];
K= [.40 .75 .40 .40 .40; .40 .40 .40 .75 0; .40 .40 .75 .40 0];
%Initial Guess for Flow Rates
Q = [2.1, 2.1, 2.9, 1.5, 0.3; 0.3, 1.2, 2.6, 2.4, 0; 1.5, 1.4, 1.4, 1.2, 0];
%Start value for flow difference (1 was chosen randomly)
err=1;
%Index for the while loop
IW=0;
while err> EPSLN %Sets condition that as long as difference is
%greater than EPSNL the loop will run.
IW=IW+1;
for i=1:NL
for j=1:NJ
Re(i,j)=p*abs(Q(i,j))/(pi/4*(D(i,j))^2)*ZL(i,j)/u;
f(i,j)=1.325/(log(e/3.7/D(i,j)+5.74/(Re(i,j))^.9))^2;
dfdQ(i,j)=(13.69*(e/3.7/D(i,j)+5.74/(Re(i,j))^.9)^(-1))/
...
((Re(i,j))^2*abs(Q(i,j))*log(e/
...
3.7/D(i,j)+5.74/(Re(i,j))^.9));
A(i,j)=8*ZL(i,j)/(pi^2*g*(D(i,j))^5);
B(i,j)=(8*K(i,j))/(pi^2*g*(D(i,j))^4);
%Calculation of head loss
if Q(i,j)>0;
HF(i,j)=A(i,j)*(Q(i,j))^2*f(i,j)+B(i,j)*Q(i,j)^2;
DHDQ(i,j)=2*A(i,j)*Q(i,j)+
...
A(i,j)*(Q(i,j))^2*dfdQ(i,j)+
...
2*B(i,j)*Q(i,j);
elseif Q(i,j)==0
HF(i,j)=0;
DHDQ(i,j)=0;
else
HF(i,j)=-(A(i,j)*(Q(i,j))^2*f(i,j)+B(i,j)*Q(i,j)^2);
DHDQ(i,j)=-(2*A(i,j)*Q(i,j)+
...
A(i,j)*(Q(i,j))^2*dfdQ(i,j)+
...
2*B(i,j)*Q(i,j));
end
SHF(i)=sum(HF(i,:));
SDHDQ(i)=sum(DHDQ(i,:));
DELQ(i)=-SHF(i)/SDHDQ(i);
HFo(i,j)=HF(i,j);
end
end
for i=1:NL
for j=1:NJ
if ID(i,j)==0
NEWQ(i,j)=Q(i,j)+DELQ(i);
elseif ID(i,j)==24
NEWQ(i,j)=Q(i,j);
else
NEWQ(i,j)=Q(i,j)+DELQ(i)-DELQ(ID(i,j));
end
err=abs(NEWQ(i,j)-Q(i,j));
Q(i,j)=NEWQ(i,j); end
end
if IW>100
break
end
IW;
end
%% Total Head Calculation for each node %%
for i=1:NL
disp(
'enter head at node 1 of loop'
)
HPo(i)=input(
''
)
HP(i,1)=HPo(i);
for j=1:NJ(i)
if j~=1
HP(i,j)=HP(i,j-1)-HFo(i,j-1);
end
end
HP
end
fid=fopen(
'Test_results1.dat'
,
'w'
)
fprintf(fid,
'TEST CASE RESULTS\n'
);
fprintf(fid,
'\n\n'
);
fprintf(fid,
'\n\n Flow Rate Distribution\n'
);
fprintf(fid,
' LOOP # LINE 1 LINE 2 LINE 3 LINE 4 \n'
);
fprintf(fid,
'*****************************************************************
**********\n'
);
for i=1:NL
fprintf(fid, '\n%5.0f | '
, i);
for j=1:NJ
fprintf(fid,
'\t %7.3f '
, Q(i,j) );
end
fprintf(fid, '\n'
);
end
fprintf(fid,
'\n\n Head Loss at each node \n'
);
fprintf(fid,
' LOOP # | NODE 1 NODE 2 NODE 3 NODE 4 \n'
);
fprintf(fid,
'*****************************************************************
**********\n'
);
for i=1:NL
fprintf(fid, '\n%5.0f | '
, i);
for j=1:NJ
fprintf(fid,
'\t %7.3f '
, HP(i,j) );
end
fprintf(fid, '\n'
);
end
fprintf(fid,
'\n\n Numbers of Iterations :'
);
fprintf(fid,
'%7.3f '
, IW );
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
arrow_forward
Can you solve it analytically using laplace transforms and with Matlab code as well please. Thank You.
arrow_forward
Problem 1 (15 points) (Core Course Outcome 5)/MatlabGrader
Write a function mySecond Derivative Order 3 that calculates the second derivative d²y/dx² of a data set (x, y) with at least
third order accuracy at each data point. The data is equidistant in x with spacing h.
The function input shall be
⚫y: one-dimensional column vector of y values
⚫h: scalar value of spacing h
The function output shall be
• d2y: column vector of the same size as y containing d²y/dx²
Calculate d²y/dx² using only the following formulas that use the nomenclature of Table 8-1 and the lecture notes, but are different
from the formulas listed there:
f" (xi) 164f(xi) — 465f(xi+1) + 460ƒ (xi+2) − 170ƒ (xi+3) + 11f (xi+5) + O(h³)
=
60h2
56f(xi−1) − 105f(xi) +40f(xi+1) + 10f(xi+2) − f(x+4) + O(h³)
60h²
−5f(xi−2) +80f(xi−1) − 150f(xi) + 80f(xi+1) − 5ƒ(xi+2)
(1)
f"(xi)
=
(2)
f"(xi)
=
+0(h)
(3)
60h2
f"(xi)
-2f(x-4)+5f(xi-3)+50f(xi-1) — 110f(xi) +57f(xi+1)
=
+0(h³)
(4)
60h²
f"(xi) =
57f(x-5) 230f(xi-4) + 290 f (xi-3)-235…
arrow_forward
Consider the following Initial Value Problem (IVP) dy /at = -t * sin (y); y(t = 0) =1
Solve for y(t=0.5) using
a) Forward Euler method with At = 0.25. (Solve by hand)
Develop a Matlab script that solves for y (t = 5) using Forward Euler method. Use
the time step levels given below and plot t vs y in the same plot. Include the plot
with the right format (axis labels, legends, ...) in your solution sheet and include
your Matlab script in the solution as well.
i) At = 0.25
ii) At = 0.125
b) Backward Euler method with At = 0.25 (Solve by hand)
arrow_forward
I want to run the SGP4 propagator for the ISS (ID = 25544) I got from spacetrack.org in MATLAB. I don't know where to get the inputs of the function. Where do I get the inFile and outFile that is mentioned in the following function.
% Purpose:
% This program shows how a Matlab program can call the Astrodynamic Standard libraries to propagate
% satellites to the requested time using SGP4 method.
%
% The program reads in user's input and output files. The program generates an
% ephemeris of position and velocity for each satellite read in. In addition, the program
% also generates other sets of orbital elements such as osculating Keplerian elements,
% mean Keplerian elements, latitude/longitude/height/pos, and nodal period/apogee/perigee/pos.
% Totally, the program prints results to five different output files.
%
%
% Usage: Sgp4Prop(inFile, outFile)
% inFile : File contains TLEs and 6P-Card (which controls start, stop times and step size)
% outFile : Base name for five output files
%…
arrow_forward
Just the handwritten work please. I do not need matlab
arrow_forward
The attached image is of the Runge-Kutta method. I want to know if there are any errors with the equations. I think I saw an error on k2 equation. It should be k2 = ax0 + h_step/2 * k1, right? Please let me know if there is anything else wrong with it
arrow_forward
Please don't provide handwritten solution ......
arrow_forward
MATLAB...Hand written plzzzz asap....FAST PLZZZZZZZZZZZ
arrow_forward
Is there any built in functions in MATLAB that transform a given Direction Cosine Matrix (DCM) to Principal Rotation Paramters (PRP)? For example, If I have a DCM, the function would give the axis, lambda, and the angle, theta.
Also, is there any built in functions that would transform a Direction Cosine Matrix to Euler Parameters (EP) and Modified Rodrigiues Parameters and Classical Rodriguess Parameters?
If I had the DCM given in the image, what would the code in MATLAB to transform it to PRP, EP, MRP, CRP look like?
arrow_forward
A projectile is launched with a velocity of 100 m/s at an angle of 30° above the horizontal.
Create a Simulink model to solve the projectile's equations of motion, where x and y are the
horizontal and vertical displacements of the projectile.
X=0
x(0) = 100 cos 30º
x(0)=0
ÿ=-g
y(0)=0
y(0)=100 sin 30º
Use the model to plot the projectile's trajectory y versus x for 0≤t≤10 s.
arrow_forward
MATLAB support with the following:
arrow_forward
I want to code the extended kalman filter in MATLAB of the following falling body problem.
arrow_forward
Here we have a very simple one dimensional model of a stroke rehabili-
tation patient supported by a robot. Often, when you have a controlled electromechanical system like a robot and
a human working together, you want to separate them by a compliant mechanism (spring with stiffness k) so that
the robot has some "give". Otherwise, if there are errors in the control of the robot it can be very uncomfortable
for a patient. The spring has zero force when x, = xp = 0. The patient provides viscous damping with damping
Xp
coefficient c.
Fp
+
C
Patient
mp
k
Xp
Robot Arm
Xr
Figure 2: Schematic diagram of a very simplified model of a patient pushing against a robot. The robot supports
the patient via a spring for safety.
In this case we want to eventually determine the force that the patient is exerting on the robot as a function of
time, so we'll do some steps towards that goal. Your tasks:
A Draw the free body diagram for the patient mass (mass mp).
B Write the equations of motion for the…
arrow_forward
Please follow the instructions and the requirements according to the pictures above and I kinda need the solution quickly. The language of the code is in Matlab, thank you in advance.
arrow_forward
Use matlab to solve the question
arrow_forward
In Matlab, add J2 perturbations to your two body propagation. Comment on your findings. Also, how would you change your code if you had other things affecting the orbit. For example, solar radiation pressure, third body perturbations, or drag. Do you just add the accelerations together in the function?
arrow_forward
(b)
A beam is subjected to a linearly increasing distributed load. The elastic curve (deflection) is shown
in the figure. The equation to find the maximum deflection is given below. Create a matlab code
where you can calculate the maximum deflection (dy/dx=0) using the bisection method.
Use initial guesses of 1 and 4, L= 6.46 m, E = 59000 kN/cm2, I=35000 cm4, and w0= 2.5 kN/cm.
What will be the value of x (location of maximum deflection) after 14 bisection iteration?
wo
-23 +2L?x³ – L^x)
120EIL
dy
wo
(-5x4 + 6L²a² – Lª)
da
120EIL
Choices
1.4445
O 2.6001
O4.3335
O 2.889
arrow_forward
Given the trasnfer function
G(s)
numerator and denominator
coefficients for Matlab code should
be:
O
s³+2s+1
2s4+2s²+1'
the
num= [1 0 2 1] and den=[2 020
1]
O num=[1 2 1] and den=[2 0 2 1 1]
O
num=[1 2 1] and den=[2 2 1]
O num=[1 0 2 1] and den=[2 2 0 1]
arrow_forward
Find the local maximum and minimum values and saddle point(s) of the function. You are encouraged to use a calculator or computer to graph the function with a domain and viewpoint that reveals all the important aspects of the function. (Enter your answers as comma-separated lists. If an answer does not exist, enter DNE.)
f(x, y) = 9 sin(x) sin(y), −? < x < ?, −? < y < ?
local maximum value(s)
local minimum value(s)
saddle point(s)
(x, y)
=
arrow_forward
Write a MatLab code to solve these 4 equations
arrow_forward
3. Using the trial function u¹(x) = a sin(x) and weighting function w¹(x) = b sin(x) find
an approximate solution to the following boundary value problems by determining the value
of coefficient a. For each one, also find the exact solution using Matlab and plot the exact
and approximate solutions. (One point each for: (i) finding a, (ii) finding the exact solution,
and (iii) plotting the solution)
a.
(U₁xx -2 = 0
u(0) = 0
u(1) = 0
b. Modify the trial function and find an approximation for the following boundary value
problem. (Hint: you will need to add an extra term to the function to make it satisfy
the boundary conditions.)
(U₁xx-2 = 0
u(0) = 1
u(1) = 0
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 matlabarrow_forwardCan you solve it analytically using laplace transforms and with Matlab code as well please. Thank You.arrow_forwardProblem 1 (15 points) (Core Course Outcome 5)/MatlabGrader Write a function mySecond Derivative Order 3 that calculates the second derivative d²y/dx² of a data set (x, y) with at least third order accuracy at each data point. The data is equidistant in x with spacing h. The function input shall be ⚫y: one-dimensional column vector of y values ⚫h: scalar value of spacing h The function output shall be • d2y: column vector of the same size as y containing d²y/dx² Calculate d²y/dx² using only the following formulas that use the nomenclature of Table 8-1 and the lecture notes, but are different from the formulas listed there: f" (xi) 164f(xi) — 465f(xi+1) + 460ƒ (xi+2) − 170ƒ (xi+3) + 11f (xi+5) + O(h³) = 60h2 56f(xi−1) − 105f(xi) +40f(xi+1) + 10f(xi+2) − f(x+4) + O(h³) 60h² −5f(xi−2) +80f(xi−1) − 150f(xi) + 80f(xi+1) − 5ƒ(xi+2) (1) f"(xi) = (2) f"(xi) = +0(h) (3) 60h2 f"(xi) -2f(x-4)+5f(xi-3)+50f(xi-1) — 110f(xi) +57f(xi+1) = +0(h³) (4) 60h² f"(xi) = 57f(x-5) 230f(xi-4) + 290 f (xi-3)-235…arrow_forward
- Consider the following Initial Value Problem (IVP) dy /at = -t * sin (y); y(t = 0) =1 Solve for y(t=0.5) using a) Forward Euler method with At = 0.25. (Solve by hand) Develop a Matlab script that solves for y (t = 5) using Forward Euler method. Use the time step levels given below and plot t vs y in the same plot. Include the plot with the right format (axis labels, legends, ...) in your solution sheet and include your Matlab script in the solution as well. i) At = 0.25 ii) At = 0.125 b) Backward Euler method with At = 0.25 (Solve by hand)arrow_forwardI want to run the SGP4 propagator for the ISS (ID = 25544) I got from spacetrack.org in MATLAB. I don't know where to get the inputs of the function. Where do I get the inFile and outFile that is mentioned in the following function. % Purpose: % This program shows how a Matlab program can call the Astrodynamic Standard libraries to propagate % satellites to the requested time using SGP4 method. % % The program reads in user's input and output files. The program generates an % ephemeris of position and velocity for each satellite read in. In addition, the program % also generates other sets of orbital elements such as osculating Keplerian elements, % mean Keplerian elements, latitude/longitude/height/pos, and nodal period/apogee/perigee/pos. % Totally, the program prints results to five different output files. % % % Usage: Sgp4Prop(inFile, outFile) % inFile : File contains TLEs and 6P-Card (which controls start, stop times and step size) % outFile : Base name for five output files %…arrow_forwardJust the handwritten work please. I do not need matlabarrow_forward
- The attached image is of the Runge-Kutta method. I want to know if there are any errors with the equations. I think I saw an error on k2 equation. It should be k2 = ax0 + h_step/2 * k1, right? Please let me know if there is anything else wrong with itarrow_forwardPlease don't provide handwritten solution ......arrow_forwardMATLAB...Hand written plzzzz asap....FAST PLZZZZZZZZZZZarrow_forward
- Is there any built in functions in MATLAB that transform a given Direction Cosine Matrix (DCM) to Principal Rotation Paramters (PRP)? For example, If I have a DCM, the function would give the axis, lambda, and the angle, theta. Also, is there any built in functions that would transform a Direction Cosine Matrix to Euler Parameters (EP) and Modified Rodrigiues Parameters and Classical Rodriguess Parameters? If I had the DCM given in the image, what would the code in MATLAB to transform it to PRP, EP, MRP, CRP look like?arrow_forwardA projectile is launched with a velocity of 100 m/s at an angle of 30° above the horizontal. Create a Simulink model to solve the projectile's equations of motion, where x and y are the horizontal and vertical displacements of the projectile. X=0 x(0) = 100 cos 30º x(0)=0 ÿ=-g y(0)=0 y(0)=100 sin 30º Use the model to plot the projectile's trajectory y versus x for 0≤t≤10 s.arrow_forwardMATLAB support with the following: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