%% Format Logical Values and Capture Struct as String
% Create a struct that contains information about a UI element.

S = struct('Type','Button','Size', 45,'Enabled',false)

%
% Use formattedDisplayText with the UseTrueFalseforLogical name-value argument to capture the struct as a string with logical values displayed as "true" or "false".

strS = formattedDisplayText(S,'UseTrueFalseForLogical',true)

% Copyright 2020 The MathWorks, Inc.