Octave <-> Matlab Compatibility Summary

  1. Interpreter
    Help
    * help version
    x helpwin helpdesk demo ver whatsnew Readme
    Variables
    * who whos clear load save quit
    x workspace pack
    Functions
    * type which
    ? inmem mex
    x what edit open lookfor pcode
    Load path
    * path
    + addpath rmpath
    x pathtool
    User output
    * echo more diary format
    Environment
    * cd pwd dir getenv mkdir computer
    + unix
    ? delete dos vms
    x copyfile web
    Debugging
    ? dbstop
    x dbclear dbcont dbdown dbstack dbstatus dbstep dbtype dbup dbquit dbmex errortrap
    Profiling
    x profile flops
    Demos and Tests. (No Matlab Equivalents)
    + example demo test assert pretty speed_test
  2. Programming
    Logical functions
    * xor any all
    Bit operations
    + bitand bitcmp bitor bitmax bitxor bitset bitget bitshift
    Sets
    * union
    + unique intersect setdiff setxor ismember
    Control structures
    * if else elseif end for while break switch case otherwise try catch return
    Interpreter interface
    * eval feval ans
    x evalc evalin builtin assignin run
    Constants
    * eps realmax realmin pi i inf NaN isnan isinf isfinite
    Symbol table
    * exist global
    ? persistent
    x isglobal mfilename mlock munlock mislocked
    Function arguments
    * nargchk nargin nargout
    ? varargin varargout
    x inputname
    User I/O
    * disp error warning clc home input keyboard pause
    + lasterr
    x lastwarn
    Inline functions
    ? inline char
    x argnames formula vectorize
  3. Linear Algehra
    Generating matrices
    * zeros ones eye linspace logspace meshgrid
    + rand randn
    Matrix properties
    * size length isempty isnumeric
    + isequal islogical logical
    Rearranging matrices
    * reshape tril triu fliplr flipud rot90 diag find
    + repmat blkdiag kron sub2ind ind2sub
    x flipdim
    Special matrices
    + hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson
    ? compan gallery hadamard
    Linear algebra
    * norm rank det trace null orth cond inv pinv eig
    + rref
    ? subspace
    x lscov polyeig condeig
    Matrix factorization
    * chol lu qr svd hess qz schur balance
    x gsvd qrdelete qrinsert rsf2csf cdf2rdf planerot cholupdate qrupdate
    Matrix functions
    * expm logm sqrtm
    + funm
  4. Mathematics
    Trigonometry
    * sin sinh asin asinh cos cosh acos acosh tan tanh atan atan2 atanh sec sech asec asech csc csch acsc acsch cot coth acot acoth
    Exponentials
    * exp log log10 log2 pow2 sqrt nextpow2
    Complex numbers
    * abs angle conj imag real
    + complex unwrap isreal cplxpair
    Floating point operations
    * fix floor ceil round sign
    Special functions
    * airy besselj bessely besselh besseli besselk beta betainc erf erfc erfinv gamma gammainc
    + ellipj ellipke gammaln legendre cross
    ? betaln erfcx expint
    Number theory
    * rem gcd lcm
    + mod factor isprime primes perms nchoosek factorial
    x rat rats
    Coordinate transformations
    + cart2sph cart2pol pol2cart sph2cart
  5. Data analysis
    Sorting
    * sort
    + sortrows
    Filtering
    * filter conv deconv detrend
    + filter2 conv2
    x convn
    Fourier analysis
    * fft fft2 ifft ifft2 fftshift
    + ifftshift
    x fftn ifftn
    Interpolation
    + interp1 interpft interp2 spline ppval mkpp unmkpp
    x interp3 interpn
    Geometry
    + polyarea
    ? delaunay tsearch convhull voronoi griddata inpolygon
    x dsearch rectint
    Polynomials
    * roots poly polyval polyvalm residue polyfit
    + polyder
  6. Optimization
    Minimization
    + fminbnd
    x fminsearch fminunc fmincon fseminf fgoalattain fminimax linprog quadprog
    Data fitting
    x lsqnonlin lsqcurvefit lsqnonneg lsqlin
    Root finding
    * fsolve
    + fzero
    Optimization controls
    x optimset optimget
  7. Calculus
    Integration
    * quad
    ? quad8 dblquad
    Differentiation
    * diff
    + gradient del2
    Ordinary differential equations
    + ode45 ode23
    x ode113 ode23t ode15s ode23s ode23tb odefile
    ODE parameters
    x odeset odeget
    ODE output
    x odeplot odephas2 odephas3 odeprint
  8. Sparse matrix support
    Generate sparse matrix
    + spdiags
    x speye sprand sprandn sprandsym spconvert
    Manipulate sparse matrices
    + sparse full issparse spy
    ? nnz find spfun
    x nonzeros nzmax spones spalloc spparms
    Reordering
    + randperm
    x colmmd symmmd symrcm colperm dmperm
    Linear algebra
    x eigs svds luinc cholinc normest condest sprank
    Solving
    x pcg bicg bicgstab cgs gmres qmr
  9. Plotting
    Line plots
    * plot loglog semilogx semilogy polar stairs
    + plot3 stem
    ? errorbar
    x plotyy scatter plotmatrix stem3 comet feather
    Business graphs
    * bar
    + pie fill
    x pie3 area barh bar3 bar3h ribbon pareto
    Contour plots
    + contour
    ? pcolor
    x contourf contour3 clabel
    Surface plots
    * mesh
    + surf quiver meshc surfc fill3
    ? trimesh
    x comet3 meshz scatter3 trisurf waterfall
    Volume plots
    x isosurface isonormals isocaps contourslice slice streamline stream3 stream2 quiver3 coneplot subvolume reducevolume smooth3
    Function and expression plotters
    x ezpolar ezplot ezcontour ezcontourf ezmesh ezmeshc ezsurf ezsurfc ezgraph3 ezplot3 fplot
  10. Plot controls
    Figure controls
    * shg
    + figure clf
    ? refresh
    x newplot gcf close
    Axis controls
    * grid hold ishold subplot
    + axis
    x zoom box axes gca cla daspect pbaspect xlim ylim zlim
    Labels
    * title xlabel ylabel zlabel
    + legend gtext
    x colorbar texlabel plotedit
    Primitives
    + text patch
    x line rectangle surface light reducepatch shrinkfaces surf2patch
    Handle manipulation
    + drawnow
    x ishandle set get reset delete gco gcbo gcbf findobj copyobj isappdata getappdata setappdata rmappdata
    Printing
    + print
    ? vrml
    x printopt orient
    Animation
    x getframe movie qtwrite rotate frame2im im2frame capture moviein
    Colour controls
    * colormap
    + brighten
    x spinmap rgbplot caxis shading hidden colordef graymon
    Colour maps
    * gray
    + hsv hot bone copper pink white flag jet prism cool autumn spring winter summer
    x lines colorcube vga contrast
    Lighting control
    x surfl lighting material specular diffuse surfnorm lightangle
    View control
    + view
    x viewmtx rotate3d
    Camera control
    x campos camtarget camva camup camproj camorbit campan camdolly camzoom camroll camlookat cameramenu camlight
    Examples
    x cylinder sphere
    User input
    + ginput
    x dragrect rbbox
  11. Graphical user interface
    GUI control
    * uimenu
    x uicontrol uicontextmenu selectmoveresize waitforbuttonpress waitfor uiwait uiresume uistack uisuspend uirestore
    Dialog boxes
    x dialog axlimdlg errordlg helpdlg inputdlg listdlg menu msgbox questdlg warndlg uigetfile uiputfile uisetcolor uisetfont pagedlg pagesetupdlg printdlg waitbar printpreview
    Menus
    x makemenu menubar umtoggle winmenu
    Buttons
    x btngroup btnstate btnpress btndown btnup
    _
    x addpref getpref rmpref setpref
    Widget controls
    x allchild findall hidegui edtext findfigs getstatus setstatus popupstr remapfig setptr getptr overobj uiclearmode
    UI Builder
    x guide align cbedit menuedit propedit
  12. Strings
    Creation
    * blanks
    + double
    ? char
    x cellstr
    Tests
    * isletter isspace
    ? ischar
    x iscellstr
    Operations
    * strcat strcmp strrep upper lower
    + deblank strvcat strncmp strcmpi strncmpi findstr strjust strmatch strtok
    Conversion
    * num2str str2num int2str sprintf sscanf bin2dec dec2bin
    + mat2str hex2dec base2dec dec2hex dec2base
    x str2double hex2num
  13. Audio
    Record and play
    + sound soundsc mu2lin lin2mu
    ? recordsound wavrecord
    x speak soundcap
    Read and write
    ? auwrite auread wavwrite wavread
    x readsnd writesnd
  14. File I/O
    Basic file operations
    * fopen fclose fread fwrite ferror feof fseek ftell frewind fscanf fgetl fgets fprintf
    x textread
    Path operations
    + fullfile
    ? fileparts tempname
    x matlabroot filesep pathsep mexext partialpath tempdir prefdir
    Import/Export
    ? dlmread dlmwrite
    x wk1read wk1write
    HDF import/export
    ? hdf
    x hdfan hdfdf24 hdfdfr8 hdfh hdfhd hdfhe hdfml hdfsd hdfv hdfvf hdfvh hdfvs hdfgd hdfpt hdfsw
  15. Date and time
    Clock functions
    * date clock cputime tic toc etime
    + now
    Date conversion
    + datenum datestr datevec weekday
    ? datetick
    x eomday calendar
  16. Types
    Base types
    ? int32
    x single uint8 uint16 uint32 int8 int16
    Multi-dimensional arrays
    x cat ndims ndgrid permute ipermute shiftdim squeeze
    Cell arrays
    + deal
    ? cell iscell
    x cellfun celldisp cellplot num2cell cell2struct struct2cell
    Structures
    + struct fieldnames getfield setfield rmfield isfield isstruct
    Classes and objects
    x class struct methods isa isobject inferiorto superiorto substruct
    Operators
    + transpose ctranspose
    x minus plus times mtimes mldivide mrdivide rdivide ldivide power mpower uminus uplus horzcat vertcat le lt gt ge eq ne not and or subsasgn subsref colon end subsindex loadobj saveobj display
  17. Image processing
    Display
    * imshow
    + image imagesc
    x getimage immovie montage subimage truesize warp
    Read/write
    ? imread imwrite
    x imfinfo
    Reshape
    ? imresize
    x imcrop imrotate
    Statistics
    + corr2 imhist mean2 std2
    x imcontour imfeature impixel improfile pixval
    Analysis
    x edge qtdecomp qtgetblk qtsetblk
    Filtering
    + histeq imadjust imnoise medfilt2 ordfilt2
    x wiener2 convmtx2 fspecial freqz2 fsamp2 ftrans2 fwind1 fwind2
    Transforms
    x iradon phantom radon
    Block processing
    x bestblk blkproc col2im colfilt im2col nlfilter applylut makelut
    Black and white image functions
    + bwlabel bwmorph
    x bwarea bweuler bwfill bwperim bwselect dilate erode
    Selection and operations on selection
    x roicolor roifill roifilt2 roipoly
    Colour controls
    + hsv2rgb rgb2hsv
    x cmpermute cmunique imapprox ntsc2rgb rgb2ntsc rgb2ycbcr ycbcr2rgb
    Representation
    * ind2rgb rgb2ind
    + gray2ind grayslice im2bw ind2gray isbw isgray isind mat2gray rgb2gray
    x dither im2double im2uint8 im2uint16 isrgb
    Preferences
    x iptgetpref iptsetpref
    Demonstrations
    x dctdemo edgedemo firdemo imadjdemo nrfiltdemo qtdemo roidemo ipss001 ipss002 ipss003
  18. Splines
    Piece-wise polynomial operations
    + fnplt
    x fnval fnbrk fncmb fn2fm fnder fnint fnjmp fnrfn
    Spline functions (pp-form)
    + csapi csape
    ? csaps
    x cscvn getcurve
    Spline functions (B-form)
    x spmak spcrv spapi spap2 spaps spcol slvblk bkbrk
    Knot operations
    x augknt aveknt brk2knt knt2brk knt2mlt newknt optknt
  19. Communications
  20. Signal processing
    Signals
    * sinc
    + pulstran tripuls rectpuls chirp specgram
    ? vco modulate demod
    x diric gauspuls sawtooth square strips buffer
    Filtering
    + fftfilt filtfilt sgolayfilt medfilt1
    x filtic latcfilt sosfilt
    Filter analysis
    + freqz grpdelay impz zplane
    x freqs freqspace
    Filter conversion
    * ss2tf ss2zp tf2ss zp2ss
    + tf2zp zp2tf
    ? residuez
    x ac2poly ac2rc convmtx latc2tf poly2ac poly2rc rc2ac rc2poly sos2ss sos2tf sos2zp ss2sos tf2latc tf2sos zp2sos polystab
    IIR Filter design
    + butter cheby1 cheby2 buttord cheb1ord bilinear
    ? buttap cheb1ap cheb2ap lp2bp lp2bs lp2hp lp2lp
    x besself ellip maxflat yulewalk cheb2ord ellipord besselap ellipap impinvar
    FIR filter design
    + fir1 fir2 remez sgolay
    x fircls fircls1 firls firrcos intfilt kaiserord cremez remezord
    Transforms
    + czt dctmtx dct2 idct2 dct idct hilbert rceps cceps
    x dftmtx icceps
    Power spectrum analysis
    + pwelch tfe cohere csd pburg pyulear xcorr xcorr2 xcov
    ? pmusic
    x pcov pmcov pmtm dpss dpssclear dpssdir dpssload dpsssave
    Window functions
    * bartlett blackman hamming hanning
    + boxcar kaiser triang
    x chebwin
    System identification
    + arburg aryule levinson
    ? arcov armcov prony
    x invfreqs invfreqz lpc rlevinson stmcb
    Sample rate change
    + decimate interp resample
    x upfirdn
    GUI tools
    x sptool
  21. System Identification
    Minimalist model simulation functions
    + mktheta poly2th idsim idplot
  22. Control theory
    System construction
    ? filt ss tf zpk ssdata tfdata zpkdata
    x frd dss frdata dssdata get set ltimodels ltiprops
    System properties
    ? isct isdt issiso
    x class hasdelay isa isempty isproper ndims size totaldelay
    System conversion
    * c2d d2c
    x d2d delay2z chgunits pade
    _
    x balreal minreal modred sminreal
    _
    * ctrb obsv gram
    x canon ctrbf obsvf ss2ss ssbal
    Block diagram manipulations
    * ord2 parallel series
    ? append connect lft
    x augstate drmodel drss rmodel rss feedback stack
    Time domain analysis
    * impulse lsim step damp dcgain pzmap
    ? norm zero
    x gensig initial covar dsort esort pole
    Frequency domain analysis
    * bode nichols nyquist pzmap rlocus
    x sigma evalfr freqresp rlocfind margin ngrid sgrid zgrid
    Controller design
    * place lqr dlqr
    ? kalman kalmd
    x acker estim reg lqry lqrd lqgreg
    Numerical functions
    * dare lyap dlyap
    x care
    GUI tools
    x ltiview rltool
  23. C programming interface
    DDE Interface
    x ddeadv ddeexec ddeinit ddepoke ddereq determ ddeunadv
    Compute server interface
    ? engClose engEvalString engOpen engOutputBuffer
    x engGetArray engOpenSingleUse engPutArray
    Compute server interface (V4 functions)
    ? engGetFull engPutFull
    x engGetMatrix engPutMatrix engSetEvalCallback engSetEvalTimeout engWinInit
    MAT file interface
    x matClose matDeleteArray matGetArray matGetArrayHeader matGetDir matGetFp matGetNextArray matGetNextArrayHeader matOpen matPutArray matPutArrayAsGlobal
    MAT file interface (V4 functions)
    x matDeleteMatrix matGetFull matGetMatrix matGetNextMatrix matGetString matPutFull matPutMatrix matPutString
    Interpreter interface
    x mexAddFlops mexAtExit mexCallMATLAB mexErrMsgTxt mexEvalString mexFunction mexFunctionName mexGet mexGetArray mexGetArrayPtr mexIsGlobal mexIsLocked mexLock mexMakeArrayPersistent mexMakeMemoryPersistent mexPrintf mexPutArray mexSet mexSetTrapFlag mexUnlock mexWarnMsgTxt mxAssert mxAssertS
    Interpreter interface (V4 functions)
    x mexGetFull mexGetGlobal mexGetMatrix mexGetMatrixPtr mexPutFull mexPutMatrix
    Data manipulation
    x mxArrayToString mxCalcSingleSubscript mxCalloc mxChar mxClassID mxClearLogical mxComplexity mxCreateCellArray mxCreateCellMatrix mxCreateCharArray mxCreateCharMatrixFromStrings mxCreateDoubleMatrix mxCreateNumericArray mxCreateSparse mxCreateString mxCreateStructArray mxCreateStructMatrix mxDestroyArray mxDuplicateArray mxFree mxGetCell mxGetClassID mxGetClassName mxGetData mxGetDimensions mxGetElementSize mxGetEps mxGetField mxGetFieldByNumber mxGetFieldNameByNumber mxGetFieldNumber mxGetImagData mxGetInf mxGetIr mxGetJc mxGetM mxGetN mxGetName mxGetNaN mxGetNumberOfDimensions mxGetNumberOfElements mxGetNumberOfFields mxGetNzmax mxGetPi mxGetPr mxGetScalar mxGetString mxIsCell mxIsChar mxIsClass mxIsComplex mxIsDouble mxIsEmpty mxIsFinite mxIsFromGlobalWS mxIsInf mxIsInt8 mxIsInt16 mxIsInt32 mxIsLogical mxIsNaN mxIsNumeric mxIsSingle mxIsSparse mxIsStruct mxIsUint8 mxIsUint16 mxIsUint32 mxMalloc mxRealloc mxSetAllocFcns mxSetCell mxSetClassName mxSetData mxSetDimensions mxSetField mxSetFieldByNumber mxSetImagData mxSetIr mxSetJc mxSetLogical mxSetM mxSetN mxSetName mxSetNzmax mxSetPi mxSetPr
    Data manipulation (V4 functions)
    x mexGetEps mexGetInf mexGetNaN mexIsFinite mexIsInf mexIsNaN mxCreateFull mxFreeMatrix mxIsFull mxIsString
  24. Symbolic algebra
    Creation
    ? sym
    x syms findsym
    Expression display
    x ccode fortran latex pretty
    Complex numbers
    x conj real imag
    Extended precision arithmetic
    ? digits vpa
    Expression manipulation
    ? collect expand
    x factor horner numden simple simplify subexpr
    Calculus
    ? diff
    x int jacobian limit symsum taylor
    Linear algebra
    x colspace det diag eig expm inv jordan null poly rank rref svd tril triu
    Equation solver
    x compose dsolve finverse solve
    Special functions
    x cosint hypergeom lambertw sinint zeta
    Maple interface
    x maple mapleinit mfun mhelp mfunlist procread
    Symbolic expression plots
    x ezcontour ezcontourf ezmesh ezmeshc ezplot ezplot3 ezpolar ezsurf ezsurfc funtool rsums
    Conversions
    x char double poly2sym sym2poly
    Transforms
    x fourier ifourier ilaplace iztrans laplace ztrans
  25. Statistics
    Parameter Estimation
    x mle betafit betalike binofit expfit gamfit gamlike normlike normfit poissfit unifit
    Distributions
    ? beta bino chi2 exp f gam geo hyge logn nbin norm poiss t unid unif weib
    x cdf icdf pdf random ncf nct ncx2 rayl
    Descriptive statistics
    * max min mean median std var hist corrcoef cov sum prod cumsum cumprod iqr kurtosis moment range skewness
    + trapz cumtrapz nansum nanmax nanmean nanmedian nanmin nanstd geomean harmmean mad prctile trimmean
    x histc
    Plots
    * qqplot
    x boxplot fsurfht gline gname lsline normplot pareto rcoplot refcurve refline surfht weibplot
    _
    x capable capaplot ewmaplot histfit normspec schart xbarplot
    Cluster analysis
    + zscore
    x cluster clusterdata cophenet dendrogram inconsistent linkage pdist squareform
    Linear regression
    * polyfit polyval
    ? anova1 regress
    x anova2 lscov polyconf ridge rstool stepwise
    Nonlinear regression
    x nlinfit nlintool nlparci nlpredci nnls
    Experiment design
    x cordexch daugment dcovary ff2n fullfact hadamard rowexch
    Principle components analysis
    ? barttest
    x pcacov pcares princomp
    Hypothesis testing
    ? ranksum signrank signtest ttest ttest2 ztest
    Dataset I/O
    x caseread casewrite tblread tblwrite
    GUI tools
    x disttool randtool polytool rsmdemo statdemo
    Sample data
    x census.mat cities.mat discrim.mat gas.mat hald.mat hogg.mat lawdata.mat mileage.mat moore.mat parts.mat popcorn.mat polydata.mat reaction.mat sat.dat