Cody

Problem 42933. Vector with a repeated entry

Create a row vector of length n, filled with 4's. For example, if n = 3,

output = [4 4 4]

Hint:

Search for the function 'ones' in MATLAB help.

Example: y = ones (1,5) = [1 1 1 1 1]

Solution Stats

43.93% Correct | 56.07% Incorrect
Last solution submitted on Jun 13, 2019

Problem Comments