How do I set title for `matlab.graphics.primitive.Image`?
K>>h = Image with properties: CData: [1024×1530 double] CDataMapping: 'scaled' Show all propertiesh = Image with properties: CData: [1024×1530 double] CDataMapping: 'scaled' Show all properties AlphaData: 1 AlphaDataMapping: 'none' BeingDeleted: 'off' BusyAction: 'cancel' ButtonDownFcn: '' CData: [1024×1530 double] CDataMapping: 'scaled' Children: [0×0 GraphicsPlaceholder] Clipping: 'on' CreateFcn: '' DeleteFcn: '' HandleVisibility: 'on' HitTest: 'on' Interruptible: 'off' Parent: [1×1 Axes] PickableParts: 'visible' Selected: 'off' SelectionHighlight: 'on' Tag: '' Type: 'image' UIContextMenu: [0×0 GraphicsPlaceholder] UserData: [] Visible: 'on' XData: [1 1530] YData: [1 1024]K>> gcaans = Axes (Why no name) with properties: XLim: [0.5000 1.5305e+03] YLim: [0.5000 1.0245e+03] XScale: 'linear' YScale: 'linear' GridLineStyle: '-' Position: [0 0 1.0000 1] Units: 'normalized' Show all propertiesK>> set(gca, 'String', 'Why no title')Error using matlab.graphics.axis.Axes/setThere is no String property on the Axes class.
Best Answer