Besides drawing plots using plot command, there are many specialized graphics functions in MATLAB for 2-D plotting. Some of the specialized 2-D plot functions are discussed in the following section.
These are further classified as
semilogx: It plots with logarithmically spaced x-axis.
semilogy: It plots with logarithmically spaced y-axis.
loglog: It plots with both the axes logarithmically spaced.
In semilogx command, the x-axis is drawn on logarithmic scale and y-axis on linear scale. The syntax is
x is the vector of x-variables, and
y is the vector of y-variables.
Plot function x= e-a, y = a2 where 0<=a<=10, using