IMG_9906
.jpeg
keyboard_arrow_up
School
University of California, Los Angeles *
*We aren’t endorsed by this school
Course
60
Subject
Mechanical Engineering
Date
Apr 3, 2024
Type
jpeg
Pages
1
Uploaded by CaptainOkapiMaster1066 on coursehero.com
R* o W;;k 4 lab-2.R 0 Lab Assignmentr 1.R* JKniton Save ') & urce = Visual 205 206 ~ ## Question 6: 207 98 ~ * " {r create variable } 70 7 210 11 summary(hmda2@$incomel) :3 B H1 = There hmda20$1evel _income[hmda2@0$incomel<50] <- 1 hmda2@$level_income [ hmda2@$incomel>=50 & hmda2@$incomel<100] <- 2 hmda20$1evel_income[hmda2@$incomel>=100 & hmda20$incomel<150] <- 3 hmda2@$1evel_income[hmda2@$incomel>=150 & hmda20%incomel <200] <- 4 hmda2@$1level _income[hmda2@$incomel>=200 & hmda2@%incomel <250] <- 5 hmda20@$1evel_incomehmda2@$incomel>=250] <- 6 summary(hmda203$1evel_income) freqChmda2@%$1evel_income) sole Terminal Background Jobs R 4.3.2 - ~/Desktop/R / nChmda20_v1) 34272 124 numeric(hmda2@$nsi) RUE Factor(hmda20@$nsi) ALSE character(hmda2@$nsi) \LSE 120_v1 <- hmda20[!is.naChmdaz@$nsi),] © | Week 5 lab.R Create a 6-category variable of income (Show frequency table): difference in the income between co-applicants and single applicants @ | Lab Assignment 2.Rmd » i £} 7~ (s @ - = Run - = Outline [ £ v R Markdown o |
Discover more documents: Sign up today!
Unlock a world of knowledge! Explore tailored content for a richer learning experience. Here's what you'll get:
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
Remaining Time: 46 minutes, 46 seconds.
V Question Completion Status:
A Moving to another question will save this response.
Question 16
ets
Which system of equations corresponds to the following augmented matrix?
[1
31
1
Lo -1
b +c = 4
x + 3y = 6; -x - y = -4
-1
41
A. a + 2b = 3;
b + 3c = 6;
B. x + 2z = 3;
C. u + 2v = 3w + 3;
v + 3w = 6;
v+w = -4
st
D.r + 2s = 3;
s + 3t = 6;
-s - t = 4
O A.
OC.
O B.
O D.
A Moving to another question will save this response.
«< Question
earch
arrow_forward
Q4: Create a Visual Basic Project to find the value of the following series:
h? h4 h3
cos(h) = h –
2!
3!
4!
Write the code program so that the value of angle (h) is entered into inputbox.
Estimate the value of series (cos(h)) so that the absolute value of any term is
greater or equal to 10-6. Display the required number of terms (N) which it used in
this series in a text box and display the result of series (cos(h)) in another separate
text box.
arrow_forward
Part III Capstone Problem
Interactive Physics - [Lab7Part3.IP]
Eile Edit World View Object Define Measure Script Window Help
Run StoplI Reset
圖|& 品凸?
Time
Length of Spring 22
6.00
dx
Center of Mass of Rectangle 2
5.000
Tension of Rope 3
Jain@
IFI
... N
ot
rot
***lad
Split
4.000
Velocity of Center of Mass of Rectangle 2
Vx Vx
V Vy
MM
Ve
- m/s
m/s
3.00
*** m/s
Vo
..* lad/s
2 00
Center of Mass of Rectangle 1
1.000
tol
rot
*.* rad
EVelocity of Center of Mass of Rectangle 1
Vx Vx
VVy
M
0.000
-m/s
w 30
m/s
w..
MI
Ve
母100
*** m/s
Vo
... rad/s
+
EAcceleration of Center of Mass of Rectangle 1
Ax Ax
A Ay
AUJAI
Ae
--- m/s^2
... m/s^2
-- m/s^2
.-- rad/s^2
3.00
Aø
Mass M1 = 2.25 kg is at the end of a rope that is 2.00 m in length. The initial angle with
respect to the vertical is 60.0° and M1 is initially at rest. Mass M1 is released and strikes M2
= 4.50 kg exactly horizontally. The collision is elastic. After collision, mass M2 is moving on
a frictionless surface, but runs into a rough patch 2.00…
arrow_forward
хоос»
0 Python 3 (p
Define a python function to determine the 2nd moment of area I, under the parabola, with respect to the centroidal-axis. The
parabolic curve is defined as z = ky2, where k = b/h². The centroidal axis has a given distance d with respect to z axis.
Hints: Use the parallel axis theorem. Find the 2nd moment of area against z axis first and then use the formula I₂ = I₁ + d²A to
calculate I, where d is a given value (no need to derive). Note that this question requires you to derive the equation first.
$
4
l) | Idle Mem: 260.77/12288.00 MB
Q
F4
R
y
1
1
0
do 5
[ ]: # Complete the function given the variables b,h,d and return the value as "Area","Iz" and "Ic"
# This is not about numerical integration, we only need the analytical solution.
# Don't change the predefined content, only fill your code in the region "YOUR CODE"
Mode: Command
%
9
F5
0
T
.
Markdown v
z = ky²
2
6
C
F6
Validate
Y
&
7
8:
F7
U
*
8
DII
F8
I
19
F9
b
O
)
Ln 1, Col 1 English (United States)…
arrow_forward
This for Matlab
Please modify the script bisect.m to report/create the iteration table.
arrow_forward
I need help with a MATLAB code. I need to find two values of n, one that is positive and one that is negative, that will give all negative real roots. Can you help me find them?
function [r] = find_roots(n)
% Define constants I = 400; J = 150; x = (J/I) - 1; y = n - 1; Q = y + x*(y-1);
% Define the coefficients of the quadratic equation coefficients = [1, 0, (3*x+Q^2+1), 0, (3*x*Q+Q^2)];
% Find the roots r = roots(coefficients);
end
arrow_forward
Given: Mass = M,
Radius = R,
Moment of Inertia = I,
Distance = H,
Gravity = g,
Initial timing = 0
Unknown =
How long will the [delta t] process take? (time)
Please keep in mind that almost every variable is unknown! We are given no numbers and are instructed to generate a solution using the variables [ "R, M, g, I and H." ]
Target =
Find an equation that, if we could substitute numbers, would determine how long the process would take.
Newton's second law and torque seem to be relevant based on how the problem is written.
* Also please show drawing based on what we are calculating
arrow_forward
2) Given the following Matlab commands
x = [8 9 11; 7 10 5]
[a, b] = max (x)
o What the result of the command [a, b]
= max (x) ?
What is a?
o What is b?
arrow_forward
USE MATLAB AND SOLVE THIS QUESTION
The ideal gas law relates the pressure P, volume V, absolute temperature T, and amount of gas n. The law is
P = nRT/ V
where R is the gas constant.
An engineer must design a large natural gas storage tank to be expandable to maintain the pressure constant at 2.2 atm. In December when the temperature is 4°F (- 15°C), the volume of gas in the tank is 28 500 ft3 . What will the volume of the same quantity of gas be in July when the temperature is 88°F (31°C)? (Hint: Use the fact that n, R, and P are constant in this problem. Note also that K =°C +273.2.)
arrow_forward
1)
Model the following problem with integer programming. The marketing department
has been allocated a budget of $10M and would like to determine which products to develop
advertising campaigns; note: at most one campaign can be launched for each product. Their goal
is to maximize revenue for the company. Data is presented in the table below.
Product
A
BCD E F
10
7
12 8 6
Projected
Revenue ($M)
Cost ($M)
6
1 2 5 4 3
arrow_forward
The following tools / resources may be useful for you to complete the assignment:a. Chatgpt (You may use it to learn Matlab coding or any other computer language. An example is given here: https://shareg.pt/mXHGne9 ). Please take note that code generated by chatgpt can be directly copied and pasted.b. Matlabi) Useful cheat sheet (https://n.ethz.ch/~marcokre/download/ML-CheatSheet.pdf)ii) Getting started with Matlab (https://matlabacademy.mathworks.com/en/details/gettingstarted )iii) Getting 30-day Matlab trial license (https://www.mathworks.com/campaigns/products/trials.html ) iv) Polyfit (https://www.mathworks.com/help/matlab/ref/polyfit.html )v) Exponential Fit (https://www.mathworks.com/matlabcentral/answers/91159-how-do-i-fit-an-exponential-curve-to-my-data)c. PlotDigitizer (https://plotdigitizer.sourceforge.net/ ) or a free online app that does not requires installation (https://plotdigitizer.com/app )You may use your own engineering judgement to make any assumptions on any…
arrow_forward
DETAILS
CHAPMANML6 1.CQ.008.
MY NOTES
ASK YOUR TEACHER
Complete the following sentence.
Instead of typing commands directly in the Command Window, a series of commands can be placed into a file, and the entire file can be executed by typing its name in the Command
Window. Such files are called
files.
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
Please help, this for Matlab the image is the first question with following 2 and 3 they go together.
2. Solving the question by using bisection.m with the stopping criterion at 1%. Report the root and # of iterations.
3. by using newton-Raphson matlab script with the stopping criterion at 0.1%. Report the root and # of iterations.
arrow_forward
Problem 04
Datal
3
7
5
7
3
Data 2
-7
4
7
-9
7
8
4
3
Data 3
Store the data in a 3x8 array (use variable name data), where each row is storing the corresponding set of row
data ('Datal', 'Data2', or 'Data3'). Show how to do the following analysis by hand calculation and using
MATLAB commands (write down the command and the result).
4
-9
1
1
5
6
a. Mean of each row of data:
b. Mean of each column of data:
c. The median of each row of data:
d. The standard deviation of each row of data:
e. The variance of each row of data:
arrow_forward
What is the return type of angles function in MATLAB ?
arrow_forward
An object was dropped off the top of a building. The function
f(x) = -16x2 + 144 represents the height of the object above the
ground, in feet, x seconds after being dropped. Find and interpret the given function values and determine an appropriate domain for the function.
f(-3) =___
meaning that___
seconds after the object was
dropped, the object was___
feet above the ground. This
interpretation___in the context of the problem.
f(0.5)=___
meaning that___
seconds after the object was
dropped, the object was___
feet above the ground. This
interpretation____in the context of the problem.
f(8)=___
meaning that___
seconds after the object was
dropped, the object was___
feet above the ground. This
interpretation___in the context of the problem.
Based on the observations above, it is clear that an appropriate
domain for the function is___
arrow_forward
Command: PLOTTERMANAGER (from the autocad file m
TO CONFIGURE A LOCAL, NONSYSTEM PLOTTER
10. PROFILES-Controls the use of profiles. A profile is a configuration you define.
367N
367N
R=1.0m
426N
426N
B.
426N
C.
The two identical sphemes having oqual weights of 367N
is placed on top of the three identic al sphere's w/ 426 N
as their reight . Compute the reaction A,B and C
arrow_forward
Fix my MATLAB code.
% Define unknown quantities in x-y system
% abc = Acceleration of B wrt C on beam CD in i direction
% vbc = Velocity of B wrt C on beam CD in i direction
% xacd = Angular acceleration of beam CD in k direction
% xvcd = Angular velocity of beam CD in k direction
syms abc vbc xacd xvcd;
% Create Unit Vectors in x-y coordinates
i = [1,0,0];
j = [0,1,0];
k = [0,0,1];
% Create Unit Vectors in X-Y coordinates (R is rotation Matrix)
Theta = 150; % Angle from X-axis to x-axis
R = [[cosd(Theta),-sind(Theta), 0]; ...
[sind(Theta), cosd(Theta), 0]; [0, 0, 1]];
XYZ = R*[i;j;k];
I = XYZ(1,:);
J = XYZ(2,:);
K = XYZ(3,:);
% Set known quantities for Beam AB (no slider connection).
xVab = -2.5*K; % Angular Velocity of Beam AB
xAab = -3*K; % Angular Acceleration of Beam AB
Rba = 0.2*(cosd(135)*I + sind(135)*J ); % Vector from A to B in X-Y
% Calculate velocity and acceleration of point B
% due to rotation of Beam AB (no slider connection).
Vb1 = cross(xVab,Rba);
Ab1 =…
arrow_forward
kamihq.com/web/viewer.html?state%=D%7B"ids"%3A%5B"1vSrSXbH_6clkKyVVKKAtzZb_GOMRwrCG"%5D%...
lasses
Gmail
Copy of mom it for..
Маps
OGOld Telephone Ima.
Preview attachmen...
Kami Uploads ►
Sylvanus Gator - Mechanical Advantage Practice Sheet.pdf
rec
Times New Roman
14px
1.5pt
BIUSA
A Xa x* 三三
To find the Mechanical Advantage of ANY simple machine when given the force, use MA = R/E.
1.
An Effort force of 30N is appliled to a screwdriver to pry the lid off of a can of paint. The
screwdriver applies 90N of force to the lid. What is the MA of the screwdriver?
MA =
arrow_forward
Example 1.7: a) Convert the next octal digit into binary 5238. b) Convert the next octal number into binary 4DC216.
arrow_forward
13. User tool frame UT[3] was set up by the programmer with three-point method for UT setup
provided by FANỤC robot system. Which of the following statements is correct.
(a) UT[3] frame is measured relative to UF[h] frame.
(b) The orientation of UT[3] frame is the same as the orientation of default TCP frame (i.e. Def-
TCP frame).
(c) The origin of UT[3] frame is exactly aligned to the origin of default Def-TCP frame.
14. Using three-point method for user tool frame UT[k] setup, a robot programmer can set up the user-
defined
of UT[k] for an end-effector.
(a) position (i.e. origin)
(b) orientation
(c) position (i.e. origin) and orientation
arrow_forward
USE MATLAB
(Convolutional Code) The vector representation of a convolutional code is g1=[1 1]and g2=[1 0]. If the received sequence is 11 11 01 10, please use Viterbi Algorithm todecode it. Please show the full trellis diagram, including the updated trellis statemetrics.
arrow_forward
For the Following question Graph all 4 : [I just need all 4 graphs and please explain and make clean solution]
Position vs time
Velocity vs time
Acceleration vs time
Force vs time
[For your convenience, I have solved the numerical solutions for the problem] (Please Look at the picture since it is much cleaner)
Question : A 550 kilogram mass initially at rest acted upon by a force of F(t) = 50et Newtons. What are the acceleration, speed, and displacement of the mass at t = 4 second ?
a =(50 e^t)/(550 ) [N/kg]
v = ∫_0^t▒(50 e^t )dt/(550 )= v_0 +(50 e^t-50)/550=((e^t- 1))/11
x = ∫_0^t▒(e^t- 1)dt/(11 )= x_0 +(e^t- t - 1)/(11 )
a(4s)=(50*54.6)/550= 4.96[m/s^2 ]
v(4s)=((e^4-1))/11= 4.87[m/s]
x(4s)=((e^4- 4 - 1))/11= 4.51 [m]
arrow_forward
AutoSave On
X
Aptos (Body)
U
quiz 2. Saved
hayley forster
Home Insert Draw Design Layout References Mailings Review View Zotero Help
11
BI Uab x₂
ab x x A
A
Editing
B
饅
te
Paragraph Styles Editing
Dictate
Sensitivity
Editor
Add-ins
A ▾
V
D
A
Aav A A
oard
ly
Font
ly
Styles
Voice
Sensitivity
Editor
Add-ins
12 13 14 15 16 17 18 19 10 11 12 13 14
LE
15 -
b
b
h
h
Determine the moment of inertia of the composite area about the x axis. Set a = 400 mmmm, b =
160 mmmm, h = 110 mmmm, r = 90 mmmm.
Express your answer with the appropriate units
of 1
62 words
▷ English (Australia) Text Predictions: On
FOCUS
Le
+ 117%
ПPLCT
HPLC?
arrow_forward
2. There were 42 mangoes in each crate. 12 such crates of mangoes were delivered to a factory. 4 mangoes
were rotten and had to be thrown away. The remaining mangoes were packed into boxes of 10 mangoes
each. Write a numerical expression in MATLAB syntax to represent this situation and then find how many
boxes of mangoes were there?
OFocus
4:20 AM
28°C Mostly clear
3/26/2022
LG
CVENUENS
THANOS
BOBBLEHEAD
AMANLANTE A ON CABIA ANn
POCKET
YOP! AVENGES
KEYCHAIN
INFINITY WAR
Handy Fan
THANOS
BOBBLE HEAD
IGENA ERANLIA P COs CA AN
arrow_forward
21. The programmer uses three-point method for UT[2] setup for a sharp-tip pointer. If the
programmer recorded each of three-points by precisely contacting the sharp-tip to the tip of the
stationary reference pointer on the table, then
(a) UT[2] setup is accurate
(b) UT[2] setup is not accurate
(c) the accuracy of UT[2] setup is still uncertain
22. User frame UF[3] is accurately set up on the part reference surface which is unparallel to the
surface where the robot is mounted. To jog the robot TCP to move perpendicularly to the part
reference surface, the programmer
(a) needs to select World jogging coordinate system
(b) needs to activate UF[3] and select User Frame jogging coordinate system
arrow_forward
7. [-/15 Points]
DETAILS
LARCALC11M 2.1.038.
Find an equation of the line that is tangent to the graph of f and parallel to the given line.
Function
Line
f(x) = 2x2
4x- y + 3 = 0
y =
Submit Answer
arrow_forward
PHYS 14 midterms - Word
Carl John Rivas
O X
File
Home
Insert
Design
Layout
References
Mailings
Review
View
Help
O Tell me what you want to do
유 Share
X Cut
P Find
Arial
- 10
A A
Aa -
AaBbCcDdE AaBbCcDdE AaBbCc AaBbCcDc A aBI
自 Copy
abc Replace
Paste
A . aly v A
1 Normal
1 No Spaci. Heading 1
Heading 2
V Format Painter
v abe
X,
Title
A Select
Clipboard
Font
Paragraph
Styles
Editing
A= 2x + 3y
B=-2x + y
4. A lightweight drone (1.00 kg) is launched at 800 m high and moves upward at a constant velocity (while
ignoring the effects of gravity only on the drone). The balloon, when measured at a horizontal distance from
you, is about 1600 m away from you. At the moment when the drone moves, you shoot a bullet (weight =180
g) with an initial velocity of 1009 m/s at a fixed angle a, where sin a=3/5 and cos a= 4/5. (g = 9.8 m/s?) (10
pts each)
a. How long does it take for the bullet to collide with the drone?
b. At what height will the bullet hit it?
Page 1 of 2
542 words
170%
PC
A O 4) 6:51 PM
arrow_forward
otINote: The notation from this problem is from Understanding Cryptography by Paar and Pelzl.
We conduct a known-plaintext attack against an LFSR. Through trial and error we have determined that the number of states is m = 4.
The plaintext given by
when encrypted by the LFSR produced the ciphertext
01011000 = yo yı y2 ys Yo Y
%3D
What are the tap bits of the LFSR? Please enter your answer as unspaced binary digits (e.g. 0101 to represent py = 0, P = 1, P = 0, Po= 1).
arrow_forward
Q1 / Reduce the block diagram to the simple form
R(s)
S
13
S
0.
S
1
S
C(s)
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
- Remaining Time: 46 minutes, 46 seconds. V Question Completion Status: A Moving to another question will save this response. Question 16 ets Which system of equations corresponds to the following augmented matrix? [1 31 1 Lo -1 b +c = 4 x + 3y = 6; -x - y = -4 -1 41 A. a + 2b = 3; b + 3c = 6; B. x + 2z = 3; C. u + 2v = 3w + 3; v + 3w = 6; v+w = -4 st D.r + 2s = 3; s + 3t = 6; -s - t = 4 O A. OC. O B. O D. A Moving to another question will save this response. «< Question earcharrow_forwardQ4: Create a Visual Basic Project to find the value of the following series: h? h4 h3 cos(h) = h – 2! 3! 4! Write the code program so that the value of angle (h) is entered into inputbox. Estimate the value of series (cos(h)) so that the absolute value of any term is greater or equal to 10-6. Display the required number of terms (N) which it used in this series in a text box and display the result of series (cos(h)) in another separate text box.arrow_forwardPart III Capstone Problem Interactive Physics - [Lab7Part3.IP] Eile Edit World View Object Define Measure Script Window Help Run StoplI Reset 圖|& 品凸? Time Length of Spring 22 6.00 dx Center of Mass of Rectangle 2 5.000 Tension of Rope 3 Jain@ IFI ... N ot rot ***lad Split 4.000 Velocity of Center of Mass of Rectangle 2 Vx Vx V Vy MM Ve - m/s m/s 3.00 *** m/s Vo ..* lad/s 2 00 Center of Mass of Rectangle 1 1.000 tol rot *.* rad EVelocity of Center of Mass of Rectangle 1 Vx Vx VVy M 0.000 -m/s w 30 m/s w.. MI Ve 母100 *** m/s Vo ... rad/s + EAcceleration of Center of Mass of Rectangle 1 Ax Ax A Ay AUJAI Ae --- m/s^2 ... m/s^2 -- m/s^2 .-- rad/s^2 3.00 Aø Mass M1 = 2.25 kg is at the end of a rope that is 2.00 m in length. The initial angle with respect to the vertical is 60.0° and M1 is initially at rest. Mass M1 is released and strikes M2 = 4.50 kg exactly horizontally. The collision is elastic. After collision, mass M2 is moving on a frictionless surface, but runs into a rough patch 2.00…arrow_forward
- хоос» 0 Python 3 (p Define a python function to determine the 2nd moment of area I, under the parabola, with respect to the centroidal-axis. The parabolic curve is defined as z = ky2, where k = b/h². The centroidal axis has a given distance d with respect to z axis. Hints: Use the parallel axis theorem. Find the 2nd moment of area against z axis first and then use the formula I₂ = I₁ + d²A to calculate I, where d is a given value (no need to derive). Note that this question requires you to derive the equation first. $ 4 l) | Idle Mem: 260.77/12288.00 MB Q F4 R y 1 1 0 do 5 [ ]: # Complete the function given the variables b,h,d and return the value as "Area","Iz" and "Ic" # This is not about numerical integration, we only need the analytical solution. # Don't change the predefined content, only fill your code in the region "YOUR CODE" Mode: Command % 9 F5 0 T . Markdown v z = ky² 2 6 C F6 Validate Y & 7 8: F7 U * 8 DII F8 I 19 F9 b O ) Ln 1, Col 1 English (United States)…arrow_forwardThis for Matlab Please modify the script bisect.m to report/create the iteration table.arrow_forwardI need help with a MATLAB code. I need to find two values of n, one that is positive and one that is negative, that will give all negative real roots. Can you help me find them? function [r] = find_roots(n) % Define constants I = 400; J = 150; x = (J/I) - 1; y = n - 1; Q = y + x*(y-1); % Define the coefficients of the quadratic equation coefficients = [1, 0, (3*x+Q^2+1), 0, (3*x*Q+Q^2)]; % Find the roots r = roots(coefficients); endarrow_forward
- Given: Mass = M, Radius = R, Moment of Inertia = I, Distance = H, Gravity = g, Initial timing = 0 Unknown = How long will the [delta t] process take? (time) Please keep in mind that almost every variable is unknown! We are given no numbers and are instructed to generate a solution using the variables [ "R, M, g, I and H." ] Target = Find an equation that, if we could substitute numbers, would determine how long the process would take. Newton's second law and torque seem to be relevant based on how the problem is written. * Also please show drawing based on what we are calculatingarrow_forward2) Given the following Matlab commands x = [8 9 11; 7 10 5] [a, b] = max (x) o What the result of the command [a, b] = max (x) ? What is a? o What is b?arrow_forwardUSE MATLAB AND SOLVE THIS QUESTION The ideal gas law relates the pressure P, volume V, absolute temperature T, and amount of gas n. The law is P = nRT/ V where R is the gas constant. An engineer must design a large natural gas storage tank to be expandable to maintain the pressure constant at 2.2 atm. In December when the temperature is 4°F (- 15°C), the volume of gas in the tank is 28 500 ft3 . What will the volume of the same quantity of gas be in July when the temperature is 88°F (31°C)? (Hint: Use the fact that n, R, and P are constant in this problem. Note also that K =°C +273.2.)arrow_forward
- 1) Model the following problem with integer programming. The marketing department has been allocated a budget of $10M and would like to determine which products to develop advertising campaigns; note: at most one campaign can be launched for each product. Their goal is to maximize revenue for the company. Data is presented in the table below. Product A BCD E F 10 7 12 8 6 Projected Revenue ($M) Cost ($M) 6 1 2 5 4 3arrow_forwardThe following tools / resources may be useful for you to complete the assignment:a. Chatgpt (You may use it to learn Matlab coding or any other computer language. An example is given here: https://shareg.pt/mXHGne9 ). Please take note that code generated by chatgpt can be directly copied and pasted.b. Matlabi) Useful cheat sheet (https://n.ethz.ch/~marcokre/download/ML-CheatSheet.pdf)ii) Getting started with Matlab (https://matlabacademy.mathworks.com/en/details/gettingstarted )iii) Getting 30-day Matlab trial license (https://www.mathworks.com/campaigns/products/trials.html ) iv) Polyfit (https://www.mathworks.com/help/matlab/ref/polyfit.html )v) Exponential Fit (https://www.mathworks.com/matlabcentral/answers/91159-how-do-i-fit-an-exponential-curve-to-my-data)c. PlotDigitizer (https://plotdigitizer.sourceforge.net/ ) or a free online app that does not requires installation (https://plotdigitizer.com/app )You may use your own engineering judgement to make any assumptions on any…arrow_forwardDETAILS CHAPMANML6 1.CQ.008. MY NOTES ASK YOUR TEACHER Complete the following sentence. Instead of typing commands directly in the Command Window, a series of commands can be placed into a file, and the entire file can be executed by typing its name in the Command Window. Such files are called files.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