# v_xticksi

## PURPOSE

V_XTIXKSI labels the x-axis of a plot using SI multipliers S=(AH)

## SYNOPSIS

function s=v_xticksi(ah)

## DESCRIPTION

```V_XTIXKSI labels the x-axis of a plot using SI multipliers S=(AH)

Inputs:  AH       axis handle [default: current axes]

Outputs:  S        optional global SI multiplier (see usage below)

Usage:   (1) plot(...);
v_xticksi;

(2) plot(...);
xlabel(['Frequency (' v_xticksi 'Hz)']);

The first form will label the tick marks on the x-axis of the current plot
using SI multipliers where appropriate. This is particularly useful for log
plots which MATLAB does not label very well.
The second form will, if possible, use a single SI multiplier for all the tick
marks; this global multiplier can be incorporated into the axis label as shown.```

## CROSS-REFERENCE INFORMATION

This function calls:
• v_xyzticksi V_XYZTIXKSI labels an axis of a plot using SI multipliers S=(AX,AH)
This function is called by:
• v_cent2frq V_FRQ2ERB Convert Hertz to Cents frequency scale [C,CR]=(FRQ)
• v_correlogram V_CORRELOGRAM calculate correlogram [y,ty]=(x,inc,nw,nlag,m,fs)
• v_erb2frq V_ERB2FRQ Convert ERB frequency scale to Hertz FRQ=(ERB)
• v_filtbankm V_FILTBANKM determine matrix for a linear/mel/erb/bark-spaced v_filterbank [X,IL,IH]=(P,N,FS,FL,FH,W)
• v_frq2bark V_FRQ2BARK Convert Hertz to BARK frequency scale BARK=(FRQ)
• v_frq2cent V_FRQ2ERB Convert Hertz to Cents frequency scale [C,CR]=(FRQ)
• v_frq2erb V_FRQ2ERB Convert Hertz to ERB frequency scale ERB=(FRQ)
• v_frq2mel V_FRQ2ERB Convert Hertz to Mel frequency scale MEL=(FRQ)
• v_gammabank V_GAMMABANK gammatone filter bank [b,a,fx,bx,gd]=(n,fs,w,fc,bw,ph,k)
• v_mel2frq V_MEL2FRQ Convert Mel frequency scale to Hertz FRQ=(MEL)
• v_melbankm V_MELBANKM determine matrix for a mel/erb/bark-spaced filterbank [X,MN,MX]=(P,N,FS,FL,FH,W)
• v_sone2phon V_PHON2SONE convert SONE loudness values to PHONs p=(s)
• v_spgrambw V_SPGRAMBW Draw spectrogram [T,F,B]=(s,fs,mode,bw,fmax,db,tinc,ann)
• v_stdspectrum V_STDSPECTRUM Generate standard acoustic/speech spectra in s- or z-domain [B,A,SI,SN]=(S,M,F,N,ZI,BS,AS)

## SOURCE CODE

```0001 function s=v_xticksi(ah)
0002 %V_XTIXKSI labels the x-axis of a plot using SI multipliers S=(AH)
0003 %
0004 %  Inputs:  AH       axis handle [default: current axes]
0005 %
0006 % Outputs:  S        optional global SI multiplier (see usage below)
0007 %
0008 % Usage:   (1) plot(...);
0009 %              v_xticksi;
0010 %
0011 %          (2) plot(...);
0012 %              xlabel(['Frequency (' v_xticksi 'Hz)']);
0013 %
0014 % The first form will label the tick marks on the x-axis of the current plot
0015 % using SI multipliers where appropriate. This is particularly useful for log
0016 % plots which MATLAB does not label very well.
0017 % The second form will, if possible, use a single SI multiplier for all the tick
0018 % marks; this global multiplier can be incorporated into the axis label as shown.
0019
0020 %       Copyright (C) Mike Brookes 2009
0021 %      Version: \$Id: v_xticksi.m 10865 2018-09-21 17:22:45Z dmb \$
0022 %
0023 %   VOICEBOX is a MATLAB toolbox for speech processing.
0025 %
0026 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0027 %   This program is free software; you can redistribute it and/or modify
0028 %   it under the terms of the GNU General Public License as published by
0029 %   the Free Software Foundation; either version 2 of the License, or
0030 %   (at your option) any later version.
0031 %
0032 %   This program is distributed in the hope that it will be useful,
0033 %   but WITHOUT ANY WARRANTY; without even the implied warranty of
0034 %   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0035 %   GNU General Public License for more details.
0036 %
0037 %   You can obtain a copy of the GNU General Public License from
0038 %   http://www.gnu.org/copyleft/gpl.html or by writing to
0039 %   Free Software Foundation, Inc.,675 Mass Ave, Cambridge, MA 02139, USA.
0040 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0041 if ~nargin
0042     ah=gca;
0043 end
0044 if nargout
0045 s=v_xyzticksi(1,ah);
0046 else
0047     v_xyzticksi(1,ah);
0048 end```

Generated by m2html © 2003