SEMILOGX Semilog X Axis Plot Function

Section: Handle-Based Graphics

Usage

This command has the exact same syntax as the plot command:
  semilogx(<data 1>,{linespec 1},<data 2>,{linespec 2}...,properties...)

in fact, it is a simple wrapper around plot that sets the x axis to have a logarithmic scale.

Example

Here is an example of an exponential signal plotted first on a linear plot:
--> y = linspace(0,2);
--> x = (10).^y
x = 
  <double>  - size: [1 100]
 
Columns 1 to 3
   1.0000000000000000    1.0476157527896648    1.0974987654930561  
 
Columns 4 to 6
   1.1497569953977358    1.2045035402587823    1.2618568830660204  
 
Columns 7 to 9
   1.3219411484660291    1.3848863713938731    1.4508287784959397  
 
Columns 10 to 12
   1.5199110829529336    1.5922827933410924    1.6681005372000588  
 
Columns 13 to 15
   1.7475284000076838    1.8307382802953682    1.9179102616724886  
 
Columns 16 to 18
   2.0092330025650473    2.1049041445120205    2.2051307399030455  
 
Columns 19 to 21
   2.3101297000831598    2.4201282647943820    2.5353644939701119  
 
Columns 22 to 24
   2.6560877829466865    2.7825594022071245    2.9150530628251765  
 
Columns 25 to 27
   3.0538555088334154    3.1992671377973836    3.3516026509388426  
 
Columns 28 to 30
   3.5111917342151311    3.6783797718286335    3.8535285937105295  
 
Columns 31 to 33
   4.0370172585965545    4.2292428743894988    4.4306214575838814  
 
Columns 34 to 36
   4.6415888336127784    4.8626015800653537    5.0941380148163793  
 
Columns 37 to 39
   5.3366992312063095    5.5908101825122243    5.8570208180566654  
 
Columns 40 to 42
   6.1359072734131725    6.4280731172843204    6.7341506577508214  
 
Columns 43 to 45
   7.0548023107186433    7.3907220335257788    7.7426368268112693  
 
Columns 46 to 48
   8.1113083078968700    8.4975343590864423    8.9021508544503867  
 
Columns 49 to 51
   9.3260334688321986    9.7700995729922546   10.2353102189902625  
 
Columns 52 to 54
  10.7226722201032310   11.2332403297802763   11.7681195243499843  
 
Columns 55 to 57
  12.3284673944206595   12.9154966501488406   13.5304777457980681  
 
Columns 58 to 60
  14.1747416292680555   14.8496826225446501   15.5567614393047151  
 
Columns 61 to 63
  16.2975083462064418   17.0735264747069060   17.8864952905743522  
 
Columns 64 to 66
  18.7381742286038389   19.6304065004027137   20.5651230834865153  
 
Columns 67 to 69
  21.5443469003188319   22.5701971963392047   23.6448941264540728  
 
Columns 70 to 72
  24.7707635599171141   25.9502421139973585   27.1858824273293997  
 
Columns 73 to 75
  28.4803586843580199   29.8364724028333868   31.2571584968823686  
 
Columns 76 to 78
  32.7454916287772804   34.3046928631491710   35.9381366380462737  
 
Columns 79 to 81
  37.6493580679246733   39.4420605943765636   41.3201240011533670  
 
Columns 82 to 84
  43.2876128108305949   45.3487850812858184   47.5081016210279543  
 
Columns 85 to 87
  49.7702356433211150   52.1400828799968465   54.6227721768434265  
 
Columns 88 to 90
  57.2236765935021694   59.9484250318940894   62.8029144183425316  
 
Columns 91 to 93
  65.7933224657567877   68.9261210434969911   72.2080901838546367  
 
Columns 94 to 96
  75.6463327554629075   79.2482898353917307   83.0217568131974417  
 
Columns 97 to 99
  86.9749002617783447   91.1162756115489145   95.4548456661834166  
 
Columns 100 to 100
 100.0000000000000000  
--> plot(x,y,'r-');

and now with a logarithmic x axis

--> semilogx(x,y,'r-');