cube3

show axes

cube1

% set perspective transformation
camproj('Perspective');
campos([-1,-2, 2]);
camva(30);
viewinfo
camera position: -1 -2 2
camera target: 0.5 0.5 0.5
camera up vector: 0 0 1
camera view angle: 30
projection: perspective
az -30.9638 el 27.2256
view matrix
    0.8575   -0.5145         0         0
    0.2354    0.3923    0.8892         0
   -0.4575   -0.7625    0.4575         0
         0         0         0    1.0000

get(gca)
	ActivePositionProperty = outerposition
	ALim = [0.1 10]
	ALimMode = auto
	AmbientLightColor = [1 1 1]
	Box = off
	CameraPosition = [-1 -2 2]
	CameraPositionMode = manual
	CameraTarget = [0.5 0.5 0.5]
	CameraTargetMode = auto
	CameraUpVector = [0 0 1]
	CameraUpVectorMode = auto
	CameraViewAngle = [30]
	CameraViewAngleMode = manual
	CLim = [0 1]
	CLimMode = auto
	Color = [1 1 1]
	CurrentPoint = [ (2 by 3) double array]
	ColorOrder = [ (7 by 3) double array]
	DataAspectRatio = [1 1 1]
	DataAspectRatioMode = manual
	DrawMode = normal
	FontAngle = normal
	FontName = Helvetica
	FontSize = [10]
	FontUnits = points
	FontWeight = normal
	GridLineStyle = :
	Layer = bottom
	LineStyleOrder = -
	LineWidth = [0.5]
	MinorGridLineStyle = :
	NextPlot = replace
	OuterPosition = [0 0 1 1]
	PlotBoxAspectRatio = [434 342.3 342.3]
	PlotBoxAspectRatioMode = manual
	Projection = perspective
	Position = [0.13 0.11 0.775 0.815]
	TickLength = [0.01 0.025]
	TickDir = out
	TickDirMode = auto
	TightInset = [0 0 0 0]
	Title = [300.002]
	Units = normalized
	View = [-30.9638 27.2256]
	XColor = [0 0 0]
	XDir = normal
	XGrid = off
	XLabel = [301.002]
	XAxisLocation = bottom
	XLim = [-0.133947 1.13395]
	XLimMode = auto
	XMinorGrid = off
	XMinorTick = off
	XScale = linear
	XTick = [0 0.2 0.4 0.6 0.8 1]
	XTickLabel = 
		0  
		0.2
		0.4
		0.6
		0.8
		1  
	XTickLabelMode = auto
	XTickMode = auto
	YColor = [0 0 0]
	YDir = normal
	YGrid = off
	YLabel = [302.002]
	YAxisLocation = left
	YLim = [-1.66533e-016 1]
	YLimMode = auto
	YMinorGrid = off
	YMinorTick = off
	YScale = linear
	YTick = [0 0.5 1]
	YTickLabel = 
		0  
		0.5
		1  
	YTickLabelMode = auto
	YTickMode = auto
	ZColor = [0 0 0]
	ZDir = normal
	ZGrid = off
	ZLabel = [303.002]
	ZLim = [-1.66533e-016 1]
	ZLimMode = auto
	ZMinorGrid = off
	ZMinorTick = off
	ZScale = linear
	ZTick = [0 0.2 0.4 0.6 0.8 1]
	ZTickLabel = 
		0  
		0.2
		0.4
		0.6
		0.8
		1  
	ZTickLabelMode = auto
	ZTickMode = auto

	BeingDeleted = off
	ButtonDownFcn = 
	Children = [ (6 by 1) double array]
	Clipping = on
	CreateFcn = 
	DeleteFcn = 
	BusyAction = queue
	HandleVisibility = on
	HitTest = on
	Interruptible = on
	Parent = [1]
	Selected = off
	SelectionHighlight = on
	Tag = 
	Type = axes
	UIContextMenu = []
	UserData = []
	Visible = off

axis on
grid on
text(0.7,-0.2,0,'x-axis','FontSize',14);
text(-0.5,0.5,0,'y-axis','FontSize',14);
text(-0.1,1.1,1.1,'z-axis','FontSize',14);