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

y = [0 10 20 30 40];
semilogx(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 semilogx function. The resulting plot contains 3 lines, each of which has x-coordinates that range from 1 to 5.

y = [ 0    10    20
     10    20    30
     20    30    40
     30    40    50
     40    50    60];

semilogx(y)
grid on

% Copyright 2020 The MathWorks, Inc.