%% Plot One Line
% Define x as a vector of 50 logarithmically spaced numbers on the interval [{10}^{-1} ,{10}^2]. Define y as 2^x. Then plot x and y, and call the grid function to show the grid lines.

x = logspace(-1,2);
y = 2.^x;
loglog(x,y)
grid on

% Copyright 2019 The MathWorks, Inc.