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

Respuesta :

Answer:  

Here is the MATLAB program.

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:endValue);  

% Transpose countValues to result in a column array

countValues = transpose(countValues);  

end

Explanation:    

The colon is used to create array countValues containing values from 1 to endValue.

transpose() is used to take the transpose of countValues

Another way to transpose countValues is  countValues = countValues.'

You can also store it in some other variable

result = countValue.'

The tranpose() is used to interchange the rows and columns positions of each element in the countValues.