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

44.44% Correct | 55.56% Incorrect
Last Solution submitted on Sep 09, 2019

Problem Comments

Problem Recent Solvers42

Suggested Problems

More from this Author11