Cody

Problem 152. Create a cell array out of a struct

Create a cell array out of a (single) struct with the fieldname in the first column and the value in the second column:

in:

S.foo = 'hello';
S.bar = 3.14;

out:

 {'foo', 'hello';
  'bar', 3.14}

Solution Stats

45.37% Correct | 54.63% Incorrect
Last solution submitted on Oct 21, 2019

Problem Recent Solvers181

Suggested Problems

Problem Tags