semilogx(X,Y) plots x- and y-coordinates using a base-10 logarithmic scale on the x-axis and a linear scale on the y-axis. To plot a set of coordinates connected by line segments, specify X and Y as vectors of
This MATLAB function sets the scale of the x-axis to be linear or logarithmic in the current axes.
x=linspace(0, 2*pi, 100); % 100个点的x座标 y=sin(x); % 对应的y座标 plot(x,y); 小整理:MATLAB基本绘图函数 plot: x轴和y轴均为线性刻度(Linear scale) loglog: x轴和y轴均为对数刻度(Logarithmic scale) semilogx: x轴为对数刻度,y轴为线性刻度 semilogy: x轴为线性刻度,y轴为对数刻度 若...
semilogy(X,Y) plots x- and y-coordinates using a linear scale on the x-axis and a base-10 logarithmic scale on the y-axis. To plot a set of coordinates connected by line segments, specify X and Y as vectors of the same length. To plot multiple sets of coordinates on the same set...
改变窗口大小用set这个命令,一个简单的例子见下:t = 1: 10;y = 3*t;figure(1);plot(t,y,'x-r');hFig = figure(1);x = 10;y = 220;width = 1000;height= 260;set(hFig, 'Position', [x y width height]);另外,axis是在已经生成的窗口内改变轴的范围,不是一个概念;"axis ...
ax=gca;%获取图片对象ax.XAxis 显示内容如下: ans=NumericRulerwithproperties:Limits:[015]Scale:'linear'Exponent:0TickValues:[051015]TickLabelFormat:'%.1f'Showallproperties 使用标尺对象的指数标签中的控制值 使用y值在-15,000和15,000之间的数据绘制数据。默认情况下,y轴刻度标签使用指数符号,指数...
plot(x,y1,x,y2,'--',x,y3,':') % 分组绘制多折线图,并分别指定线型 plot(x,y,'-o','MarkerIndices',1:5:length(y)) % 设置线型,并设置显示的标记数量 plot(x,y,'-o','MarkerIndices',[1 5 10]) % 设置线型,并在第一、第五和第十个数据点处显示圆形标记 ...
loglog(X,Y) plots x- and y-coordinates using a base-10 logarithmic scale on the x-axis and the y-axis. To plot a set of coordinates connected by line segments, specify X and Y as vectors of the same length. To plot multiple sets of coordinates on the same set of axes, specify ...
1.坐标轴位置(XAxisLocation ,YAxisLocation ) XAxisLocation有两个选项,‘bottom’和‘top’;YAxisLocation 也有两个选项,‘left’和‘right’,含义很明显的,多说无益。 2.坐标轴方向(XDir, YDir, ZDir ) 表示坐标轴的指向,有两个选项,‘normal’和‘reverse’,我感觉这个也不用我废话了… ...
不知道为什么会只画到6 ,不过用下面的方法可画到10结束,请参考一下,希望对你有帮助,有疑问可进一步提出。>> syms x y>> y = 74.58-33.35*log10(x)>> ezplot(y,[0.1,10]);给