Questions
Your task is to take the above code, and insert comments (using the “%” symbol) next...

Your task is to take the above code, and insert comments (using the “%” symbol) next to each line of code to make sure that you know what every line does.


close all;
clear all;
clc;
thetaAB = 0;
angleIncrement = 0.1;
numOfLoops = 360/angleIncrement;
thetaABVector = [angleIncrement:angleIncrement:360];
rAB = 5;
rBC = 8;
for i=1:numOfLoops
    bothResults = SliderCrankPosn(rAB,rBC,thetaAB);
    rAC(i) = bothResults(1);
    thetaBC(i) = bothResults(2);
    thetaAB = thetaAB+angleIncrement;

end

subplot(2,1,1)
plot(thetaABVector,thetaBC,'Linewidth',3);
xlabel('\theta_{AB} [degrees]');
ylabel('\theta_{BC} [degrees]');
xlim([0 360]);
ylim([300 400]);
grid on;
subplot(2,1,2)
plot(thetaABVector,rAC,'r');
xlabel('\theta_{AB} [degrees]');
ylabel('r_{AC} [inches]');
xlim([0 360]);
grid on;

In: Mechanical Engineering

Differences in means 1. Does quench water temperature affect average yield strength 2. Does O-ring hardness...

Differences in means

1. Does quench water temperature affect average yield strength

2. Does O-ring hardness affect average leak pressure

3. Is the average pressure capacity of an air tank above spec

Differences in variances

1. Does quench water temperature affect variation in yield strength

2. Do harder O-rings reduce variability in leak pressure

3. Is the variation in pressure capacity of an air tank within spec

In: Mechanical Engineering

15 g of S are added to 100 g of chloroprene. What is the maximum fraction...

15 g of S are added to 100 g of chloroprene. What is the maximum fraction of crosslinks that can be obtained assuming only 12% of the crosslinking atoms are effective. B) What conditions have to be satisfied for polybutadiene to exhibit elastomeric behavior? Will it be an elastomer at -10C?

In: Mechanical Engineering

A particle moves along a straight line with an acceleration a=2v1/2m/s2, where v is in m/s....

A particle moves along a straight line with an acceleration a=2v1/2m/s2, where v is in m/s.

If s = 0, v = 1 m/s when t = 0, determine the time for the particle to achieve a velocity of 18 m/s. Also, find the displacement of particle when t = 1 s. Express your answer using three significant figures and include the appropriate units.

In: Mechanical Engineering

This question is taken from "System engineering course " please answer it Only if you're sure...

This question is taken from "System engineering course " please answer it Only if you're sure from your answer. and please use proper English language.

Do politics play a role in all programs?

In: Mechanical Engineering

Consider 4 blocks with different masses mi connected by ropes of negligible mass.

use python.

Consider 4 blocks with different masses mi connected by ropes of negligible mass. Three of the blocks lie on an inclined plane and the fourth lies in the direction of the gravity vector. The coefficients of friction between the blocks and the inclined plane are µi. The equations of motion governing these four blocks are described by the following system of equations:

T1 + m1a = m1g(sin(theta) - µ1*cos(theta))

-T1 + T2 +m2a = m2g(sin(theta) - µ2*cos(theta))

-T2 + T3 + m3a = m3g(sin(theta) - µ3*cos(theta))

-T3 + m4a = -m4g

Where the Ti denote the tensile forces in the ropes and a is the acceleration of the system. Determine a and the three Ti for θ = 45°, g = 9.82 m/s2 , {mi} = [10, 4, 5, 6]^T kg, and {µi} = [0.25, 0.3, 0.2]^T

The output to the command terminal prompt within Spyder should read:

T1 =

T2 =

T3 =

a =

All values should be printed out to 4 significant digits of accuracy and units must be assigned.

In: Mechanical Engineering

1. Air enters a steady-state diffuser at T1 = 20 °C, P1 = 100 kPa and...

1. Air enters a steady-state diffuser at T1 = 20 °C, P1 = 100 kPa
and leaves at P2 = 105 kPa. You may assume an adiabatic
diffuser and constant specific heats. Find T2 if:
a) V1 = 10 m/s, V2 = 0 m/s
b) V1 = 100 m/s, V2 = 90 m/s
c) V1 = 500 m/s, V2 = 490 m/s
d) V1 = 1000 m/s, V2 = 990 m/s

In: Mechanical Engineering

Hot combustion gases enter a gas turbine at 0.8 MPa and 0.538 m3/kg at a rate...

Hot combustion gases enter a gas turbine at 0.8 MPa and 0.538 m3/kg at a rate of 2.1 kg/s, and exit at 0.1 MPa and 2.29 m3/kg. Heat is lost from the turbine to the surroundings at a rate of 150 kW and the internal energy decreases 904 kW in the process. What is the power output of the gas turbine? (Assume no change in velocity or elevation across the turbine.)

In: Mechanical Engineering

In 1999, the 125 million dollar Mars Climate Orbiter crashed onto the surface of Mars due...

In 1999, the 125 million dollar Mars Climate Orbiter crashed onto the surface of Mars due to a unit conversion mistake. Briefly research this story and write a short, one or two paragraph, explanation of the unit conversion error that caused the crash (make sure you use your own words and include the list of references that you used). Then, show the unit conversion that the engineers providing the information to NASA’s Jet Propulsion Lab (JPL) should have used to ensure that the values were in the correct units.

In: Mechanical Engineering

The AutoCAD interface that facilitates assembling multiple layouts and views in a single location is A....

The AutoCAD interface that facilitates assembling multiple layouts and views in a single location is A. Layer Translator. B. CAD Standards. C. Sheet Set Manager. D. Object Manager.

In: Mechanical Engineering

Your task is to take the below code, and insert comments (using the “%” symbol) next...

Your task is to take the below code, and insert comments (using the “%” symbol) next to each line of code to make sure that you know what every line does.

clc
clear
close all
NMax = 100;
partialSum = 0;
exactAnswer = pi^2;

for k=1:NMax
partialSum = partialSum + 6/k^2;
percentDiff(k) = abs(partialSum - exactAnswer)/exactAnswer*100;
end

NVector = [1:NMax];
plot(NVector,percentDiff);
xlabel('{{Noob}}');
ylabel('% Difference');

In: Mechanical Engineering

what does it imply if the efficiency of an engine is less than its corresponding carnot...

what does it imply if the efficiency of an engine is less than its corresponding carnot efficiency?.Describe two real life effects that might cause this difference.

In: Mechanical Engineering

1) Successful product development requires decision making in an environment free from constant change. TRUE or...

1) Successful product development requires decision making in an environment free from constant change. TRUE or FALSE

2) One of the most difficult aspects of product development is recognizing, understanding and managing trade-offs. TRUE or FALSE

3) The cost of product development is roughly proportional to the number of people involved and the duration of the development project. TRUE or FALSE

4) Developing a successful product of even modest complexity requires hundreds, even thousands of decisions. TRUE or FALSE

5) Characteristics of dysfunctional product development teams include lack of empowerment, functional allegiances transcending project goals and inadequate resources. TRUE or FALSE

In: Mechanical Engineering

A pressure vessel is being designed to hold compressed methane to fuel a liquid rocket motor...

A pressure vessel is being designed to hold compressed methane to fuel a liquid rocket motor at a maximum pressure of 50 bar. If the methane is to be stored at 40 bar, -18 C, determine the mass contained in a 10 m3 tank using the following assumptions:

a) The ideal gas equation of state.

b) The van der Waals equation of state.

c) Using CoolProp. Comment on the accuracy of each.

In: Mechanical Engineering

Air with a dry bulb temperature 75 F and a wet bulb temperature 65 F is...

Air with a dry bulb temperature 75 F and a wet bulb temperature 65 F is at a sea level pressure of 14.7 psia. Using equations to calculate (a) humidity ratio, (b) the relative humidity of the air, (c) enthalpy, (d) dew point, and (e) the mass density of the dry air. (50)

In: Mechanical Engineering