https://github.com/cran/pracma
Raw File
Tip revision: 113add4c7a9bfd37466a9b41cf2dc060b7b87091 authored by HwB on 06 December 2012, 00:00:00 UTC
version 1.3.1
Tip revision: 113add4
matlab.R
##
##  m a t l a b . R  Matlab Idioms
##


matlab <- function() {
    cat(paste("",
  "The following functions are emulations of corresponding Matlab functions",
  "and bear the same signature as their Matlab cousins as far as possible:",
  "
  accumarray, acot, acoth, acsc, acsch, and, angle, ans, asec, asech,
  beep, blank, blkdiag, bsxfun,
  cart2pol, cart2sph, ceil, clear, compan, cond, conv, cot, coth, cross,
      csc, csch,
  deblank, deconv, deg2rad, detrend, deval, disp, dot,
  eig, eigint, ellipj, ellipke, erf, erfc, erfcinv, erfcx, erfi, erfinv,
      errorbar, expm, eye, ezcontour, ezmesh, ezplot, ezpolar,
  fact, factors, figure, findstr, flipdim, fliplr, flipud, fminbnd,
      fminsearch, fplot, fsolve, fzero,
  gammainc, gcd, gradient,
  hadamard, hankel, hilb, histc, humps, hypot,
  ifft, inpolygon, interp1, interp2, inv, isempty, isprime,
  kron,
  linspace, logm, logseq, logspace,
  magic, meshgrid, mkpp, mldivide, mod, mrdivide,
  nchoosek, ndims, nextpow2, nnz, normest, nthroot, null, num2str, numel,
  ode23, ones, or, orth,
  pascal, pchip, peaks, perms, piecewise, pinv, plotyy, pol2cart, polar,
      polyfit, polyint, polylog, polyval, pow2, ppval, primes,
  quad, quad2d, quadgk, quadl, quiver,
  rad2deg, randi, randn, randsample, rat, rats, regexp, regexpi, regexpreg,
      rem, repmat, roots, rosser, rot90, rref, runge,
  sec, sech, sinc, size, sph2cart, sqrtm, std, str2num, strcat, strcmp,
      strcmpi, strfind, strfindi, strjust, strrep, subspace,
  tic, toc, trapz, tril, triu,
  vander, vectorfield,
  whittaker, who, wilkinson,
  zeros, zeta.",
  "", 
  "The following Matlab function names have been capitalized in `pracma' to",
  "avoid shadowing functions from R base or one of its recommended packages:",
  "
  Diag, factors, finds, Fix, Imag, Lcm, Mode, Norm, nullspace (null),
  Poly, Rank, Real, Reshape, strTrim, Toeplitz, Trace, uniq (unique).", 
  "",
  "To use 'ans' instead of 'ans()' (i.e., as is common practice in Matlab)",
  "type (and similar for other Matlab commands):",
  "
  makeActiveBinding('ans', function() .Last.value, .GlobalEnv)",
  "\n",
    sep = "\n", collapse = ""))
  
    invisible(NULL)
}
back to top