%% Plot Multiple Lines
% Create a vector of x-coordinates and two vectors of y-coordinates. Plot two lines by passing comma-separated x-y pairs to loglog.

x = logspace(-1,2);
y1 = 10.^x;
y2 = 1./10.^x;
loglog(x,y1,x,y2)
grid on

% Alternatively, you can create the same plot with one x-y pair by specifying y as a matrix: loglog(x,[y1;y2]).
% Copyright 2019 The MathWorks, Inc.