
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.