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
Determine the dimensions for W if W = P L^3 / (M V^2) where P is a pressure, L is a length, M is a mass, and V is a velocity.
Eva8 [605]

Correct answer is option E. No dimensions

As we know formula Pressure (P) is \frac{F}{A}

also,

  • Dimensional formula of <em>Pressure is </em>M^{1}L^{-1}T^{-2}
  • Dimensional formula of <em>length is L </em>
  • Dimensional formula of <em>mass is M</em>
  • Dimensional formula  of <em>velocity is </em>L^{1} T^{-1}

So, as given W=\frac{P*L^{3} }{M*V^{2} }

Dimensional formula of W =\frac{M^{1}L^{-1}T^{-2}  L^{3}  }{M^{1} L^{2}T^{-2}   }

since all terms get cancelled

Work is dimensionless i.e no dimensions

Learn more about dimensions here brainly.com/question/20351712

#SPJ10

6 0
2 years ago
6.48 programming project 1: encode/decode tic -tac-toe
natita [175]

Answer:

What do you need help with?

Explanation:

5 0
3 years ago
Answer true or false 3.Individual people decide what will be produced in a command<br> oconomy
Pie

Answer:

False

Explanation:

The government decides the productions.

7 0
4 years ago
Read 2 more answers
Explain 3 ways that people in sports use engineering to increase their performance?
LenKa [72]
Designing systems for manufacturing, motion analysis or impact testing;
building and testing prototypes;
analyzing the human body to prevent injury;
developing or designing new light weight materials that will be more comfortable and withstand greater impacts or forces;
7 0
3 years ago
A right triangle has a base of 12 inches and a height of 30 inches, what is the centroid of the triangle?​
aliina [53]

Answer:

the correct answer is 42

4 0
3 years ago
Other questions:
  • Calculate the maximum internal crack length allowable for a 7075-T651 aluminum alloy component that is loaded to a stress one-ha
    15·1 answer
  • Water flows down a rectangular channel that is 1.2 m wide and 1 m deep. The flow rate is 0.95 m/s. Estimate the Froude number of
    15·1 answer
  • A soil has the following Green-Ampt parameters Effective porosity 0.400 Initial volumetric moisture content-15% Hydraulic Conduc
    6·1 answer
  • A six-lane multilane highway (three lanes in each direction) has a peak-hour factor of 0.90, 11-ft lanes with a 4-ft right-side
    11·1 answer
  • What is the base unit in standard measurement
    13·2 answers
  • Why must air tanks be drained​
    15·1 answer
  • Define a separate subroutine for each of the following tasks respectively.
    6·2 answers
  • Which of the following describes a product concept?
    15·1 answer
  • Explain the use of a vacuum gauge.
    15·1 answer
  • 11. As __and___ prices continued to rise in the late 1960’s and 70's, 4 and 6 cylinder engines began to make a comeback.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!