Given a short brief matrix, such as x = [1.2 2.4 3.6; 1.5 2.3 3.5; 1.35 2.35 3.65] and a label 13, create a fixed format text output whose contents are in a cell array as follows:

     [13] '1:' [1.2]  '2:' [2.4]  '3:' [3.6]
     [13] '1:' [1.5]  '2:' [2.3]  '3:' [3.5]
     [13] '1:' [1.35] '2:' [2.35] '3:' [3.65]

That is to say, add a label before each line of x, and add a column index value before each column of x. Use the delimiter ':' to separate the index value from the column value.

Solution Stats

31 Solutions

23 Solvers

Last Solution submitted on Oct 12, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...