Repair a placeholder-row constructor

A test engineer wants a 2-by-5 array whose first row contains five positions from 0 to 12 m and whose second row contains five zero placeholders. The engineer writes:


MATLAB
r = linspace(0,12,5);
M = [r; zeros(5)];


Which statement correctly describes the current result and the replacement needed for zeros(5)?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Creating Arrays Questions: