%% Specify y-Coordinates Only
% When you specify only one coordinate vector, semilogy plots those coordinates against the values 1:length(y). For example, define y as a vector of 5 values. Create a log-linear plot of y.

y = [0.1 0.2 1 10 1000];
semilogy(y)
grid on

%
% If you specify y as a matrix, the columns of y are plotted against the values 1:size(y,1). For example, define y as a 5-by-3 matrix and pass it to the semilogy function. The resulting plot contains 3 lines, each of which has x-coordinates that range from 1 to 5.

y = [ 0.1    1     10
      0.2    2     20
      1.0    10    100
      10     100   1000
      1000   10000 100000];

semilogy(y)
grid on

% Copyright 2020 The MathWorks, Inc.