### 6.7. Specialized Two-Dimensional Plots

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.

#### 6.7.1. Logarithmic Plot Function

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.

##### 6.7.1.1. `semilogx`

In `semilogx` command, the x-axis is drawn on logarithmic scale and y-axis on linear scale. The syntax is

where

x is the vector of x-variables, and

y is the vector of y-variables.

##### Example 6.14.

Plot function `x= e`^{-a}, y = a^{2} where `0<=a<=10`, using |