1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Karo-lina-s [1.5K]
3 years ago
6

Column arrays: Transpose a row array Construct a row array countValues with elements 1 to endValue, using the double colon opera

tor. Transpose countValues to result in a column array. Function Save Reset MATLAB DocumentationOpens in new tab function countValues = CreateArray(endValue) % endValue: Ending value of countValues % Construct a row array countValues with elements 1 to endValue, % using the double colon operator countValues = 1; % Transpose countValues to result in a column array end 1 2 3 4 5 6 7 8 9 10 11 Code to call your function

Engineering
1 answer:
White raven [17]3 years ago
7 0

Answer:

Matlab code with step by step explanation and output results are given below

Explanation:

We have to construct a Matlab function that creates a row vector "countValues" with elements 1 to endValue. That means it starts from 1 and ends at the value provided by the user (endValue).  

function countValues = CreateArray(endValue)

% Here we construct a row vector countValues from 1:endValue

     countValues = 1:endValue;

% then we transpose this row vector into column vector

     countValues = countValues';

 end

Output:

Calling this function with the endValue=11 returns following output

CreateArray(11)

ans =

    1

    2

    3

    4

    5

    6

    7

    8

    9

   10

   11

Hence the function works correctly. It creates a row vector then transposes it and makes it a column vector.

You might be interested in
Two heat exchangers are under consideration for purchase. A standard type of heat exchanger (code name HX1) has an initial insta
Leviafan [203]

Answer:

The lower capitalized cost is associated with HX1

Explanation:

The capitalized cost is basically the present cost. Therefore, for the Heat Exchanger HX1, the capitalized cost will be:

CC1 = First Cost

<u>CC1 = - $ 20,000</u>

Negative sign shows cash outflow.

Now, for Heat Exchanger HX2, we have:

CC2 = - $ 34,000 + ($ 4,000)(P/F, 6%, 10)

Now, we use the factor tables to calculate the present worth (P) of the salvage value, which is actually future worth, after 10 years at a compounded interest of 6% per year.

The factor table is provided in picture, with the value indicated.

CC2 = - $ 34,000 + ($ 4,000)(0.5584)

CC2 = - $ 34,000 + $ 2,233.6

<u>CC2 = - $ 31,766.4</u>

From the capitalized cost, taking look at the absolute values of both heat exchangers we can conclude that:

<u>The Heat Exchanger that will result in lower capitalized cost is HX1</u>

3 0
3 years ago
If there is a railroad crossing ahead and a red flashing signal warns you of an approaching train, you must?
DaniilM [7]

Answer: Stop

Explanation: When you approach a railroad crossing with flashing signal lights, stop at the limit line or far away from the gates. And do not proceed until the red lights stop flashing.

I hope this helps!

6 0
2 years ago
I feel so pressured..
topjm [15]

Answer: Thats alright bro keep yo head up

:

7 0
2 years ago
Read 2 more answers
A cylindrical buoy is 2m in diameter and 2.5m long and weight 22kN . The specific weight of sea water is 10.25kN/m^3 . (I) Show
aleksandrvk [35]

Answer:

GM

So the bouy does not float with its axis vertical

Explanation:

From the question we are told that:

Diameter d=2m

Length l=2.5m

Weight W=22kN

Specific weight of sea water \mu= 10.25kN/m^3

Generally the equation for weight of cylinder is mathematically given by

Weight of cylinder = buoyancy Force

W=(pwg)Vd

Where

V_d=\pi/4(d)^2y

Therefore

22*10^3=10.25*10^3 *\pi/4(2)^2y\\\\\22*10^3=32201.3247y\\\\\y=1.5m

Therefore

Center of Bouyance B

B=\frac{y}{2}=0.26m\\\\B=0.75

Center of Gravity

G=\frac{I.B}{2}=2.6m

Generally the equation for\BM is mathematically given by

BM=\frac{I}{vd}\\\\BM=\frac{3.142/64*2^4}{3.142/4*2^2*0.5215}\\\\BM=0.479m\\\\

Therefore

BG=2.6-0.476\\\\BG=0.64m

Therefore

GM=BM-BG\\\\GM=0.479m-0.64m\\\\GM=-0.161m\\\\

Therefore

GM

So the bouy does not float with its axis vertical

4 0
3 years ago
A construction company distributes its products by trucks loaded at its loading station. A backacter in conjunction with trucks
blagie [28]

Answer:

a) L = 1.5

L_q = 0.9

W =  \dfrac{1 }{8 } \, hour

W_q =  \dfrac{3}{40 } \, hour

P = \dfrac{3}{5 }

b) The new backacter should be recommended

c) The additional backacter should not be deployed

Explanation:

a) The required parameters are;

L = The number of customers available

L = \dfrac{\lambda }{\mu -\lambda }

μ = Service rate

L_q = The number of customers waiting in line

L_q = p\times L

W = The time spent waiting including being served

W = \dfrac{1 }{\mu -\lambda }

W_q = The time spent waiting in line

W_q = P \times W

P = The system utilization

P = \dfrac{\lambda }{\mu  }

From the information given;

λ = 12 trucks/hour

μ = 3 min/truck = 60/3 truck/hour = 20 truck/hour

Plugging in the above values, we have;

L = \dfrac{12 }{20 -12 } = \dfrac{12 }{8 } = 1.5

P = \dfrac{12 }{20 } = \dfrac{3}{5 }

L_q = \dfrac{3}{5 } \times \dfrac{3}{2 } = \dfrac{9}{10 } = 0.9

W = \dfrac{1 }{20 -12 } =  \dfrac{1 }{8 } \ hour

W_q = \dfrac{3}{5 } \times \dfrac{1}{8 } = \dfrac{3}{40 } \, hour

(b) The service rate with the new backacter = 1.5 minutes/truck which is thus;

μ = 60/1.5 trucks/hour = 40 trucks/hour

P = \dfrac{12 }{40  } = \dfrac{3}{10}

W = \dfrac{1 }{40 -12 } =  \dfrac{1 }{38 } \, hour

W_q = \dfrac{3}{10 } \times \dfrac{1}{38 } = \dfrac{3}{380 } \, hour

λ = 12 trucks/hour

Total cost = mC_s + \lambda WC_w

m = 1

C_s = GH¢ = 1300

C_w = 400

Total cost with the old backacter is given as follows;

1 \times 1000 + 12 \times \dfrac{1}{8}  \times 400 = \$ 1,600.00

Total cost with the new backacter is given as follows;

1 \times 1300 + 12 \times \dfrac{1}{38}  \times 400 = \$ 1,426.32

The new backacter will reduce the total costs, therefore, the new backacter is recommended.

c)

Here μ = 3 min/ 2 trucks = 2×60/3 truck/hour = 40 truck/hour

\therefore W = \dfrac{1 }{40 -12 } =  \dfrac{1 }{38 } \, hour

Total cost with the one backacter is given as follows;

1 \times 1000 + 12 \times \dfrac{1}{8}  \times 400 = \$ 1,600.00

Total cost with two backacters is given as follows;

2 \times 1000 + 12 \times \dfrac{1}{38}  \times 400 = \$ 2,126.32

The additional backacter will increase the total costs, therefore, it should not be deployed.

6 0
3 years ago
Other questions:
  • A museum has three rooms, each with a motion sensor (m0, m1, and m2) that outputs 1 when motion is detected. At night, the only
    8·1 answer
  • Integer to Float Conversion All labs must be done during lab time. Each labs worth 10 points The lab can be hand in next day wit
    14·1 answer
  • A level loop began and closed on BM_A (elevation = 823.368 ft). The plus and minus sights were kept approximately equal. Reading
    11·1 answer
  • Steam at 6 MPa and 5008C enters a two-stage adiabatic turbine at a rate of 15 kg/s. 10 percent of the steam is extracted at the
    5·1 answer
  • (25 points).The heat is turned on in a building in a cold morning, but the heater does not burnthe natural gas properly and emit
    13·1 answer
  • Please read and answer each question carefully.
    9·1 answer
  • If you've had anything to drink and can't get a ride home from sober friends or family, __________.
    11·2 answers
  • Need Answers Quick!!!! What is the purpose of structural components such as frames, bearings, and mounts? A.) Connect two rotati
    9·1 answer
  • Find the resultant of two forces 130 N and 110 N respectively, acting at an angle whose tangent
    10·1 answer
  • Mr. Ray deposited $200,000 in the Old and Third National Bank. If the bank pays 8% interest, how much will he have in the accoun
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!