Cody

# Problem 43020. Get factory-defined property values

Solution 993608

Submitted on 4 Oct 2016 by LY Cao
• Size: 14
• This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
str = 'AnimatedlineColor'; assert(isequal(factory(str),[0 0 0]))

2   Pass
str = 'AreaHandleVisibility'; assert(isequal(factory(str),'on'))

3   Pass
str = 'AxesBox'; assert(isequal(factory(str),'off'))

4   Pass
str = 'AxesUnits'; assert(isequal(factory(str),'normalized'))

5   Pass
str = 'BarLineWidth'; assert(isequal(factory(str),0.5))

6   Pass
str = 'ColorbarFontName'; assert(isequal(factory(str),'Helvetica'))

7   Pass

8   Pass
str = 'EllipseshapePosition'; assert(isequal(factory(str),[0.3 0.3 0.1 0.1]))

9   Pass

10   Pass
str = 'GraphplotPickableParts'; assert(isequal(factory(str),'visible'))

11   Pass
str = 'HistogramFaceAlpha'; assert(isequal(factory(str),0.6))

12   Pass
str = 'ImageCreateFcn'; assert(isequal(factory(str),''))

13   Pass
str = 'LineMarkerSize'; assert(isequal(factory(str),6))

14   Pass
str = 'PatchLineStyle'; assert(isequal(factory(str),'-'))

15   Pass
str = 'QuiverAutoScaleFactor'; assert(isequal(factory(str),0.9))

16   Pass
str = 'RectanglePosition'; assert(isequal(factory(str),[0 0 1 1]))

17   Pass
str = 'ScatterMarker'; assert(isequal(factory(str),'o'))

18   Pass
str = 'TextInterpreter'; assert(isequal(factory(str),'tex'))

19   Pass
str = 'UicontrolBackgroundColor'; assert(isequal(factory(str),[0.9400 0.9400 0.9400]))