Given a cell array C, return a cell array D with the following specifications:
1. D has the same size as the input C.
2. Each cell of D contains an empty (0x0) variable, the data type of which must match the data type of the original contents of the cell.
Examples:
1. If C = {1, 2; zeros(2, 'single'), 'ABC'} then D = { [], []; zeros(0, 'single'), ''}.
2. If C = {true, rand(2), 'MATLAB'} then D = {true(0), [], ''}.
Note: cell arrays in the test suite only contain data types present in core MATLAB.
Count from 0 to N^M in base N.
200 Solvers
Project Euler: Problem 1, Multiples of 3 and 5
1064 Solvers
367 Solvers
Sum of diagonal of a square matrix
1159 Solvers
Wind outward from the center ...
54 Solvers
Solution 348033
when the variable is a struct it is unclear whether "preserving the data type" should preserve the field names or not (testsuite expects the latter)
Structure field names are not required to be preserved.