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
How does a rudder help maneuver an airplane?
Nonamiya [84]
It’s just helps it like
4 0
3 years ago
For powder compaction using a single-action punch, derive an expression for the distribution of axial pressure within a die of r
Zielflug [23.3K]

Answer:

a) 2∪p/lb (l+b)dH

b) po exp( 4∪x/l)

Explanation:

please check the attachment for proper explanation and proper sign notations thanks.

3 0
3 years ago
Which of these fuel injection systems operates with fuel injectors located only in the intake manifold near each intake
Stella [2.4K]

Answer:

C. Multipoint fuel injection

Explanation:

A fuel injection system can be defined as a system found in the engine of most automobile cars, used for the supply of a precise amount of fuel or fuel-air mixture to the cylinders in an internal combustion engine through the use of an injector.

There are different types of fuel injection system and these includes;

I. Central-point injection.

II. Throttle (single point) body injection.

III. Gasoline direct injection.

IV. Multipoint (port) fuel injection.

Multipoint fuel injection is a type of fuel injection system that operates with fuel injectors located only in the intake manifold near each intake valve and sprays fuel toward the valve. As a result, it allows for the supply of a precise amount of fuel and as such creating a better air-fuel ratio for automobile cars.

8 0
3 years ago
A gas expands in a piston-cylinder assembly from p1 = 8 bar, V1 = 0.02 m3 to p2 = 2 bar. The relation between pressure and volum
Charra [1.4K]

Answer:

The heat transfer is 29.75 kJ

Explanation:

The process is a polytropic expansion process

General polytropic expansion process is given by PV^n = constant

Comparing PV^n = constant with PV^1.2 = constant

n = 1.2

(V2/V1)^n = P1/P2

(V2/0.02)^1.2 = 8/2

V2/0.02 = 4^(1/1.2)

V2 = 0.02 × 3.2 = 0.064 m^3

W = (P2V2 - P1V1)/1-n

P1 = 8 bar = 8×100 = 800 kPa

P2 = 2 bar = 2×100 = 200 kPa

V1 = 0.02 m^3

V2 = 0.064 m^3

1 - n = 1 - 1.2 = -0.2

W = (200×0.064 - 800×0.02)/-0.2 = -3.2/-0.2 = 16 kJ

∆U = 55 kJ/kg × 0.25 kg = 13.75 kJ

Heat transfer (Q) = ∆U + W = 13.75 + 16 = 29.75 kJ

7 0
3 years ago
When the 2.8-kg bob is given a horizontal speed of 1.5 m/s, it begins to rotate around the horizontal circular path A. The force
Rama09 [41]

Answer:

The speed is the same at 1.5 m/s while

The work done by the force F is 0.4335 J

Explanation:

Here we have angular acceleration α = v²/r

Force = ma = 2.8 × 1.5²/r₁

and ω₁ = v₁/r₁ = ω₂ = v₁/r₂

The distance moved by the force = 600 - 300 = 300 mm = 0.3 m

If the velocity is constant

The speed is 1.5 m/s while the work done is

2.8 × 1.5²1/(effective radius) ×0.3

r₁ = effective radius

2.8*9.81 = 2.8 × 1.5²/r₁

r₁ = 0.229

The work done by the force = 2.8 × 1.5²*1/r₁ *0.3 = 0.4335 J

4 0
3 years ago
Other questions:
  • One-dimensional, steady-state conduction with uniform internal energy generation occurs in a plane wall with a thickness of 50 m
    14·1 answer
  • What is the damped natural frequency (in rad/s) of a second order system whose undamped natural frequency is 25 rad/s and has a
    15·1 answer
  • Superheated steam is stored in a large tank at 6 MPa and 800°C, The steam is exhausted isentropically through a converging-diver
    5·1 answer
  • Effect of feedback on the plant is to a) Control system transient response b) Reduce the sensitivity to plant parameter variatio
    15·1 answer
  • Suppose a student rubs a Teflon rod with wool and then briefly touches it to an initially neutral aluminum rod suspended by insu
    6·1 answer
  • The base class Pet has attributes name and age. The derived class Dog inherits attributes from the base class Pet class and incl
    10·1 answer
  • The efficiency of a steam power plant can beincreased by bleeding off some of the steam thatwould normally enter the turbine and
    15·1 answer
  • List six possible valve defects that should be included in the inspection of a used valve?
    7·1 answer
  • A cylindrical 1040 steel rod having a minimum tensile strength of 865 MPa (125,000 psi), a ductility of at least 10%EL, and a fi
    7·1 answer
  • We have a tube with a diameter of 5 inches that is 1 foot long. The tube then reduces the diameter to 3 inches. According to the
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!