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
A circular ceramic plate that can be modeled as a blackbody is being heated by an electrical heater. The plate is 30 cm in diame
denis23 [38]

Answer:

Q = 125.538 W

Explanation:

Given data:

D = 30 cm

Temperature T_\infity = 15 degree celcius

T_S =  220 + 273 = 473 K

Heat coefficient = 12 W/m^2 K

Efficiency 80% = 0.8

Q = hA(T_S - T_{\infty}) \eta

= 12(\frac{\pi}{4} 0.3^2) (473 - 288) 0.8

Q = 125.538 W

5 0
3 years ago
Coal fire burning at 1100 k delivers heat energy to a reservoir at 500 k. Find maximum efficiency.
Marizza181 [45]

Answer:

<em>55%</em>

Explanation:

hot reservoir = 1100 K

cold reservoir = 500 K

<em>This is a Carnot system</em>

For a Carnot system, maximum efficicency of the system is given as

Eff = 1 - \frac{Tc}{Th}

where Tc = temperature of cold reservoir = 500K

Th = temperature of hot reservoir = 1100 K

Eff = 1 - \frac{500}{1100}

Eff = 1 - 0.45 = 0.55 or<em> 55%</em>

7 0
3 years ago
Wet steam at 15 bar is throttled adiabatically in a steady-flow process to 2 bar. The resulting stream has a temperature of 130°
cricket20 [7]

Answer:

\Delta s = 0.8708\,\frac{kJ}{kg\cdot K}

Explanation:

The adiabatic throttling process is modelled after the First Law of Thermodynamics:

m\cdot (h_{in} - h_{out}) = 0

h_{in} = h_{out}

Properties of water at inlet and outlet are obtained from steam tables:

State 1 - Inlet (Liquid-Vapor Mixture)

P = 1500\,kPa

T = 198.29\,^{\textdegree}C

h = 2726.9\,\frac{kJ}{kg}

s = 6.3068\,\frac{kJ}{kg\cdot K}

x = 0.967

State 2 - Outlet (Superheated Vapor)

P = 200\,kPa

T = 130\,^{\textdegree}C

h = 2726.9\,\frac{kJ}{kg}

s = 7.1776\,\frac{kJ}{kg\cdot K}

The change of entropy of the steam is derived of the Second Law of Thermodynamics:

\Delta s = 7.1776\,\frac{kJ}{kg\cdot K} - 6.3068\, \frac{kJ}{kg\cdot K}

\Delta s = 0.8708\,\frac{kJ}{kg\cdot K}

6 0
3 years ago
Are routers better for internet connection rather than a WiFi modem?
sleet_krkn [62]

Answer:

Depends

Explanation:

The modem connects you to the Internet via ISP. Without a modem, your router will only allow you to connect to a LAN. A modem will provide connections for just a single wired device. If you want to go wireless you need a router.

8 0
4 years ago
Read 2 more answers
An aluminium alloy tube has a length of 750 mm at a temperature of 223°C. What will be its length at 23°C if its coefficient of
uranmaximum [27]

Answer:

Final length= 746.175 mm

Explanation:

Given that Length of aluminium at 223 C is 750 mm.As we know that when temperature of material increases or decreases then dimensions of material also increases or decreases respectively with temperature.

Here temperature of aluminium decreases so the final length of aluminium decreases .

As we know that

\Delta L=L\alpha\Delta T

Now by putting the values

\Delta L=750\times \25.5\times 10^{-6}\times 200

ΔL=3.82 mm

So final length =750-3.82 mm

Final length= 746.175 mm

3 0
3 years ago
Other questions:
  • The fouling on the heat exchanger surfaces causes additional thermal resistance, thus decreases the heat transfer rate. a)- True
    11·1 answer
  • why HF (hydrogen fluoride) has higher boiling temperature than HCl (hydrogen chloride), even thought HF has lower molecular weig
    8·1 answer
  • Generally natural shape of stone is in shaped as (a)angular (b)irregular (c)cubical cone shape (d)regular
    10·2 answers
  • Why excess air is required to burn a fuel completely
    8·2 answers
  • Consider a 400 mm × 400 mm window in an aircraft. For a temperature difference of 90°C from the inner to the outer surface of th
    10·1 answer
  • What do you do if building doesn't have enough water pressure for sprinklers? a. Increase pipe size b. Adjust budget to accommod
    15·1 answer
  • Cho biết tác dụng chung của các hệ giằng khung ngang nhà công nghiệp nhẹ 1 tầng 1 nhịp.
    13·1 answer
  • I want to solve the question
    11·1 answer
  • All these are returnless fuel systems EXCEPT ?
    8·1 answer
  • What is the tolerance for number 4?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!