time | Calls | line |
---|
| | 1 | function a_arrayProps = mergeArrayProps(a_arrayProps,b_arrayProps)
|
| | 2 | % Use b's per-array property values where a's were empty.
|
| | 3 |
|
| | 4 | % Copyright 2012-2018 The MathWorks, Inc.
|
| | 5 |
|
< 0.001 | 4 | 6 | if isempty(a_arrayProps.Description) && ~isempty(b_arrayProps.Description)
|
| | 7 | a_arrayProps.Description = b_arrayProps.Description;
|
< 0.001 | 4 | 8 | end
|
< 0.001 | 4 | 9 | if isempty(a_arrayProps.UserData) && ~isempty(b_arrayProps.UserData)
|
| | 10 | a_arrayProps.UserData = b_arrayProps.UserData;
|
< 0.001 | 4 | 11 | end
|
< 0.001 | 4 | 12 | if isempty(a_arrayProps.TableCustomProperties) && ~isempty(b_arrayProps.TableCustomProperties)
|
| | 13 | a_arrayProps.TableCustomProperties = b_arrayProps.TableCustomProperties;
|
< 0.001 | 4 | 14 | else % Merge custom properties structs
|
< 0.001 | 4 | 15 | a_arrayProps.TableCustomProperties = mergeNonemptyScalarStructs(a_arrayProps.TableCustomProperties,b_arrayProps.TableCustomProperties);
|
< 0.001 | 4 | 16 | end
|
< 0.001 | 4 | 17 | end
|
Other subfunctions in this file are not included in this listing.