Preserve test identities during deletion

A pressure matrix has three sensor rows and five test columns. All entries are in kilopascals.


MATLAB
D = [11 21 31 41 51; 12 22 32 42 52; 13 23 33 43 53];


Remove original test columns 2 and 4, preserve the order of the other tests, and append a new final test column containing 61, 62, and 63 kPa for sensors 1, 2, and 3 respectively. Which command sequence produces the required result? Each sequence starts from the original D above.

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 Modifying Arrays Questions: