gca
Current axes or chart
Syntax
ax = gca
Description
returns the current axes or chart for the current figure, which is typically the last one created or clicked with the mouse.ax
= gca
返回当前图形的当前轴或图表,通常是用鼠标创建或单击的最后一个轴。ax
= gca
Graphics functions, such as title
, target the current axes or chart. Use ax
to access and modify properties of the axes or chart. If axes or charts do not exist, then gca
creates Cartesian axes.
图形功能(例如标题)以当前轴或图表为目标。 使用ax访问和修改轴或图表的属性。 如果轴或图表不存在,则gca创建笛卡尔坐标轴。
Specify Properties for Current Axes
Plot a sine wave.
x = linspace(0,10);
y = sin(4*x);
plot(x,y)