123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868 |
- <?php
- /*************************************************************************************
- * matlab.php
- * -----------
- * Author: Florian Knorn (floz@gmx.de)
- * Copyright: (c) 2004 Florian Knorn (http://www.florian-knorn.com)
- * Release Version: 1.0.7.21
- * Date Started: 2005/02/09
- *
- * Matlab M-file language file for GeSHi.
- *
- * CHANGES
- * -------
- * 2006-03-25
- * - support for the transpose operator
- * - many keywords added
- * - links to the matlab documentation at mathworks
- * by: Olivier Verdier (olivier.verdier@free.fr)
- * 2005/05/07 (1.0.0)
- * - First Release
- *
- *
- *************************************************************************************
- *
- * This file is part of GeSHi.
- *
- * GeSHi is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * GeSHi is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with GeSHi; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- ************************************************************************************/
-
- $language_data = array (
- 'LANG_NAME' => 'Matlab M',
- 'COMMENT_SINGLE' => array(1 => '%'),
- 'COMMENT_MULTI' => array(),
- 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
- 'QUOTEMARKS' => array(),
- 'ESCAPE_CHAR' => '',
- 'KEYWORDS' => array(
- 1 => array(
- 'break', 'case', 'catch', 'continue', 'elseif', 'else', 'end', 'for',
- 'function', 'global', 'if', 'otherwise', 'persistent', 'return',
- 'switch', 'try', 'while','...'
- ),
- 2 => array(
- 'all',
- 'any',
- 'exist',
- 'find',
- 'is',
- 'isa',
- 'logical',
- 'mislocked',
-
- 'builtin',
- 'eval',
- 'evalc',
- 'evalin',
- 'feval',
- 'function',
- 'global',
- 'nargchk',
- 'persistent',
- 'script',
- 'break',
- 'case',
- 'catch',
- 'else',
- 'elseif',
- 'end',
- 'error',
- 'for',
- 'if',
- 'otherwise',
- 'return',
- 'switch',
- 'try',
- 'warning',
- 'while',
- 'input',
- 'keyboard',
- 'menu',
- 'pause',
- 'class',
- 'double',
- 'inferiorto',
- 'inline',
- 'int8',
- 'int16',
- 'int32',
- 'isa',
- 'loadobj',
- 'saveobj',
- 'single',
- 'superiorto',
- 'uint8',
- 'int16',
- 'uint32',
- 'dbclear',
- 'dbcont',
- 'dbdown',
- 'dbmex',
- 'dbquit',
- 'dbstack',
- 'dbstatus',
- 'dbstep',
- 'dbstop',
- 'dbtype',
- 'dbup',
-
- 'blkdiag',
- 'eye',
- 'linspace',
- 'logspace',
- 'ones',
- 'rand',
- 'randn',
- 'zeros',
- 'ans',
- 'computer',
- 'eps',
- 'flops',
- 'i',
- 'Inf',
- 'inputname',
- 'j',
- 'NaN',
- 'nargin',
- 'nargout',
- 'pi',
- 'realmax',
- 'realmin',
- 'varargin',
- 'varargout',
- 'calendar',
- 'clock',
- 'cputime',
- 'date',
- 'datenum',
- 'datestr',
- 'datevec',
- 'eomday',
- 'etime',
- 'now',
- 'tic',
- 'toc',
- 'weekday',
- 'cat',
- 'diag',
- 'fliplr',
- 'flipud',
- 'repmat',
- 'reshape',
- 'rot90',
- 'tril',
- 'triu',
- 'compan',
- 'gallery',
- 'hadamard',
- 'hankel',
- 'hilb',
- 'invhilb',
- 'magic',
- 'pascal',
- 'toeplitz',
- 'wilkinson',
- 'abs',
- 'acos',
- 'acosh',
- 'acot',
- 'acoth',
- 'acsc',
- 'acsch',
- 'angle',
- 'asec',
- 'asech',
- 'asin',
- 'asinh',
- 'atan',
- 'atanh',
- 'atan2',
- 'ceil',
- 'complex',
- 'conj',
- 'cos',
- 'cosh',
- 'cot',
- 'coth',
- 'csc',
- 'csch',
- 'exp',
- 'fix',
- 'floor',
- 'gcd',
- 'imag',
- 'lcm',
- 'log',
- 'log2',
- 'log10',
- 'mod',
- 'nchoosek',
- 'real',
- 'rem',
- 'round',
- 'sec',
- 'sech',
- 'sign',
- 'sin',
- 'sinh',
- 'sqrt',
- 'tan',
- 'tanh',
- 'airy',
- 'besselh',
- 'besseli',
- 'besselk',
- 'besselj',
- 'Bessely',
- 'beta',
- 'betainc',
- 'betaln',
- 'ellipj',
- 'ellipke',
- 'erf',
- 'erfc',
- 'erfcx',
- 'erfiny',
- 'expint',
- 'factorial',
- 'gamma',
- 'gammainc',
- 'gammaln',
- 'legendre',
- 'pow2',
- 'rat',
- 'rats',
- 'cart2pol',
- 'cart2sph',
- 'pol2cart',
- 'sph2cart',
- 'abs',
- 'eval',
- 'real',
- 'strings',
- 'deblank',
- 'findstr',
- 'lower',
- 'strcat',
- 'strcmp',
- 'strcmpi',
- 'strjust',
- 'strmatch',
- 'strncmp',
- 'strrep',
- 'strtok',
- 'strvcat',
- 'symvar',
- 'texlabel',
- 'upper',
- 'char',
- 'int2str',
- 'mat2str',
- 'num2str',
- 'sprintf',
- 'sscanf',
- 'str2double',
- 'str2num',
- 'bin2dec',
- 'dec2bin',
- 'dec2hex',
- 'hex2dec',
- 'hex2num',
- 'fclose',
- 'fopen',
- 'fread',
- 'fwrite',
- 'fgetl',
- 'fgets',
- 'fprintf',
- 'fscanf',
- 'feof',
- 'ferror',
- 'frewind',
- 'fseek',
- 'ftell',
- 'sprintf',
- 'sscanf',
- 'dlmread',
- 'dlmwrite',
- 'hdf',
- 'imfinfo',
- 'imread',
- 'imwrite',
- 'textread',
- 'wk1read',
- 'wk1write',
- 'bitand',
- 'bitcmp',
- 'bitor',
- 'bitmax',
- 'bitset',
- 'bitshift',
- 'bitget',
- 'bitxor',
- 'fieldnames',
- 'getfield',
- 'rmfield',
- 'setfield',
- 'struct',
- 'struct2cell',
- 'class',
- 'isa',
- 'cell',
- 'cellfun',
- 'cellstr',
- 'cell2struct',
- 'celldisp',
- 'cellplot',
- 'num2cell',
- 'cat',
- 'flipdim',
- 'ind2sub',
- 'ipermute',
- 'ndgrid',
- 'ndims',
- 'permute',
- 'reshape',
- 'shiftdim',
- 'squeeze',
- 'sub2ind',
- 'cond',
- 'condeig',
- 'det',
- 'norm',
- 'null',
- 'orth',
- 'rank',
- 'rcond',
- 'rref',
- 'rrefmovie',
- 'subspace',
- 'trace',
- 'chol',
- 'inv',
- 'lscov',
- 'lu',
- 'nnls',
- 'pinv',
- 'qr',
- 'balance',
- 'cdf2rdf',
- 'eig',
- 'gsvd',
- 'hess',
- 'poly',
- 'qz',
- 'rsf2csf',
- 'schur',
- 'svd',
- 'expm',
- 'funm',
- 'logm',
- 'sqrtm',
- 'qrdelete',
- 'qrinsert',
- 'bar',
- 'barh',
- 'hist',
- 'hold',
- 'loglog',
- 'pie',
- 'plot',
- 'polar',
- 'semilogx',
- 'semilogy',
- 'subplot',
- 'bar3',
- 'bar3h',
- 'comet3',
- 'cylinder',
- 'fill3',
- 'plot3',
- 'quiver3',
- 'slice',
- 'sphere',
- 'stem3',
- 'waterfall',
- 'clabel',
- 'datetick',
- 'grid',
- 'gtext',
- 'legend',
- 'plotyy',
- 'title',
- 'xlabel',
- 'ylabel',
- 'zlabel',
- 'contour',
- 'contourc',
- 'contourf',
- 'hidden',
- 'meshc',
- 'mesh',
- 'peaks',
- 'surf',
- 'surface',
- 'surfc',
- 'surfl',
- 'trimesh',
- 'trisurf',
- 'coneplot',
- 'contourslice',
- 'isocaps',
- 'isonormals',
- 'isosurface',
- 'reducepatch',
- 'reducevolume',
- 'shrinkfaces',
- 'smooth3',
- 'stream2',
- 'stream3',
- 'streamline',
- 'surf2patch',
- 'subvolume',
- 'griddata',
- 'meshgrid',
- 'area',
- 'box',
- 'comet',
- 'compass',
- 'errorbar',
- 'ezcontour',
- 'ezcontourf',
- 'ezmesh',
- 'ezmeshc',
- 'ezplot',
- 'ezplot3',
- 'ezpolar',
- 'ezsurf',
- 'ezsurfc',
- 'feather',
- 'fill',
- 'fplot',
- 'pareto',
- 'pie3',
- 'plotmatrix',
- 'pcolor',
- 'rose',
- 'quiver',
- 'ribbon',
- 'stairs',
- 'scatter',
- 'scatter3',
- 'stem',
- 'convhull',
- 'delaunay',
- 'dsearch',
- 'inpolygon',
- 'polyarea',
- 'tsearch',
- 'voronoi',
- 'camdolly',
- 'camlookat',
- 'camorbit',
- 'campan',
- 'campos',
- 'camproj',
- 'camroll',
- 'camtarget',
- 'camup',
- 'camva',
- 'camzoom',
- 'daspect',
- 'pbaspect',
- 'view',
- 'viewmtx',
- 'xlim',
- 'ylim',
- 'zlim',
- 'camlight',
- 'diffuse',
- 'lighting',
- 'lightingangle',
- 'material',
- 'specular',
- 'brighten',
- 'bwcontr',
- 'caxis',
- 'colorbar',
- 'colorcube',
- 'colordef',
- 'colormap',
- 'graymon',
- 'hsv2rgb',
- 'rgb2hsv',
- 'rgbplot',
- 'shading',
- 'spinmap',
- 'surfnorm',
- 'whitebg',
- 'autumn',
- 'bone',
- 'contrast',
- 'cool',
- 'copper',
- 'flag',
- 'gray',
- 'hot',
- 'hsv',
- 'jet',
- 'lines',
- 'prism',
- 'spring',
- 'summer',
- 'winter',
- 'orient',
- 'print',
- 'printopt',
- 'saveas',
- 'copyobj',
- 'findobj',
- 'gcbo',
- 'gco',
- 'get',
- 'rotate',
- 'ishandle',
- 'set',
- 'axes',
- 'figure',
- 'image',
- 'light',
- 'line',
- 'patch',
- 'rectangle',
- 'surface',
- 'text Create',
- 'uicontext Create',
- 'capture',
- 'clc',
- 'clf',
- 'clg',
- 'close',
- 'gcf',
- 'newplot',
- 'refresh',
- 'saveas',
- 'axis',
- 'cla',
- 'gca',
- 'propedit',
- 'reset',
- 'rotate3d',
- 'selectmoveresize',
- 'shg',
- 'ginput',
- 'zoom',
- 'dragrect',
- 'drawnow',
- 'rbbox',
- 'dialog',
- 'errordlg',
- 'helpdlg',
- 'inputdlg',
- 'listdlg',
- 'msgbox',
- 'pagedlg',
- 'printdlg',
- 'questdlg',
- 'uigetfile',
- 'uiputfile',
- 'uisetcolor',
- 'uisetfont',
- 'warndlg',
- 'menu',
- 'menuedit',
- 'uicontextmenu',
- 'uicontrol',
- 'uimenu',
- 'dragrect',
- 'findfigs',
- 'gcbo',
- 'rbbox',
- 'selectmoveresize',
- 'textwrap',
- 'uiresume',
- 'uiwait Used',
- 'waitbar',
- 'waitforbuttonpress',
- 'convhull',
- 'cumprod',
- 'cumsum',
- 'cumtrapz',
- 'delaunay',
- 'dsearch',
- 'factor',
- 'inpolygon',
- 'max',
- 'mean',
- 'median',
- 'min',
- 'perms',
- 'polyarea',
- 'primes',
- 'prod',
- 'sort',
- 'sortrows',
- 'std',
- 'sum',
- 'trapz',
- 'tsearch',
- 'var',
- 'voronoi',
- 'del2',
- 'diff',
- 'gradient',
- 'corrcoef',
- 'cov',
- 'conv',
- 'conv2',
- 'deconv',
- 'filter',
- 'filter2',
- 'abs',
- 'angle',
- 'cplxpair',
- 'fft',
- 'fft2',
- 'fftshift',
- 'ifft',
- 'ifft2',
- 'ifftn',
- 'ifftshift',
- 'nextpow2',
- 'unwrap',
- 'cross',
- 'intersect',
- 'ismember',
- 'setdiff',
- 'setxor',
- 'union',
- 'unique',
- 'conv',
- 'deconv',
- 'poly',
- 'polyder',
- 'polyeig',
- 'polyfit',
- 'polyval',
- 'polyvalm',
- 'residue',
- 'roots',
- 'griddata',
- 'interp1',
- 'interp2',
- 'interp3',
- 'interpft',
- 'interpn',
- 'meshgrid',
- 'ndgrid',
- 'spline',
- 'dblquad',
- 'fmin',
- 'fmins',
- 'fzero',
- 'ode45,',
- 'ode113,',
- 'ode15s,',
- 'ode23s,',
- 'ode23t,',
- 'ode23tb',
- 'odefile',
- 'odeget',
- 'odeset',
- 'quad,',
- 'vectorize',
- 'spdiags',
- 'speye',
- 'sprand',
- 'sprandn',
- 'sprandsym',
- 'find',
- 'full',
- 'sparse',
- 'spconvert',
- 'nnz',
- 'nonzeros',
- 'nzmax',
- 'spalloc',
- 'spfun',
- 'spones',
- 'colmmd',
- 'colperm',
- 'dmperm',
- 'randperm',
- 'symmmd',
- 'symrcm',
- 'condest',
- 'normest',
- 'bicg',
- 'bicgstab',
- 'cgs',
- 'cholinc',
- 'cholupdate',
- 'gmres',
- 'luinc',
- 'pcg',
- 'qmr',
- 'qr',
- 'qrdelete',
- 'qrinsert',
- 'qrupdate',
- 'eigs',
- 'svds',
- 'spparms',
- 'lin2mu',
- 'mu2lin',
- 'sound',
- 'soundsc',
- 'auread',
- 'auwrite',
- 'wavread',
- 'wavwrite',
- '[Keywords 6]',
- 'addpath',
- 'doc',
- 'docopt',
- 'help',
- 'helpdesk',
- 'helpwin',
- 'lasterr',
- 'lastwarn',
- 'lookfor',
- 'partialpath',
- 'path',
- 'pathtool',
- 'profile',
- 'profreport',
- 'rmpath',
- 'type',
- 'ver',
- 'version',
- 'web',
- 'what',
- 'whatsnew',
- 'which',
- 'clear',
- 'disp',
- 'length',
- 'load',
- 'mlock',
- 'munlock',
- 'openvar',
- 'pack',
- 'save',
- 'saveas',
- 'size',
- 'who',
- 'whos',
- 'workspace',
- 'clc',
- 'echo',
- 'format',
- 'home',
- 'more',
- 'cd',
- 'copyfile',
- 'delete',
- 'diary',
- 'dir',
- 'edit',
- 'fileparts',
- 'fullfile',
- 'inmem',
- 'ls',
- 'matlabroot',
- 'mkdir',
- 'open',
- 'pwd',
- 'tempdir',
- 'tempname',
- 'matlabrc',
- 'quit',
- )
- ),
- 'SYMBOLS' => array(
- '...'
- ),
- 'CASE_SENSITIVE' => array(
- GESHI_COMMENTS => true,
- 1 => false,
- 2 => false,
- //3 => false,
- //4 => false,
- ),
- 'STYLES' => array(
- 'KEYWORDS' => array(
- 1 => 'color: #0000FF;',
- 2 => 'color: #0000FF;'
- ),
- 'COMMENTS' => array(
- 1 => 'color: #228B22;',
- ),
- 'ESCAPE_CHAR' => array(
- 0 => ''
- ),
- 'BRACKETS' => array(
- 0 => 'color: #080;'
- ),
- 'STRINGS' => array(
- //0 => 'color: #A020F0;'
- ),
- 'NUMBERS' => array(
- 0 => 'color: #33f;'
- ),
- 'METHODS' => array(
- 1 => '',
- 2 => ''
- ),
- 'SYMBOLS' => array(
- 0 => 'color: #080;'
- ),
- 'REGEXPS' => array(
- 0 => 'color:#A020F0;'
- ),
- 'SCRIPT' => array(
- 0 => ''
- )
- ),
- 'URLS' => array(
- 1 => '',
- 2 => 'http://www.mathworks.com/access/helpdesk/help/techdoc/ref/{FNAME}.html',
- 3 => '',
- 4 => ''
- ),
- 'OOLANG' => true,
- 'OBJECT_SPLITTERS' => array(
- 1 => '.',
- 2 => '::'
- ),
- 'REGEXPS' => array(
- 0 => array(
- GESHI_SEARCH => "([^\w])'([^\\n\\r']*)'",
- GESHI_REPLACE => '\\2',
- GESHI_MODIFIERS => '',
- GESHI_BEFORE => "\\1'",
- GESHI_AFTER => "'"
- )
- ),
- 'STRICT_MODE_APPLIES' => GESHI_NEVER,
- 'SCRIPT_DELIMITERS' => array(
- ),
- 'HIGHLIGHT_STRICT_BLOCK' => array(
- )
- );
-
- ?>
|