www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/PlotMultipleLinesWithSemilogPlotExample.m

    %% Plot Multiple Lines
% Plot multiple lines by specifying the input |Y| as a matrix. |semilogx|
% plots each column of |Y| against vector |X|.

% Copyright 2015 The MathWorks, Inc.


X = linspace(1,1000);
Y = [2*X; 8*X];
semilogx(X,Y)