Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Problem 2037. Insert structure in a parameter-cell array.

Created by J-G van der Toorn

When creating Matlab GUI elements, you can mix value pairs with structures in the list of input arguments, e.g.

uicontrol('tag','click',struct('position',[0 0 100 20]),'style','push')

Suppose you are creating a function that pre-processes the gui-creation call, and you want to convert the mix of both into a single cell array. That is what this assignment is about.

You are creating a function that converts a cell array that may contain structures into a cell array, with the newly added cells in the place of the structures.


Problem Group

Solution Statistics

14 correct solutions 6 incorrect solutions
Last solution submitted on Nov 26, 2014

Solution Comments