Logo Background
bsxfun – Apply element-by-element binary operation to two arrays with singleton expansion enabled Syntax 1 C = bsxfun(fun,A,B) Description C = b...

Matlab Forums News

Most Recent Articles

  • bsxfun
    By matlabtutorials on December 6, 2009 | No Comments  Comments
    bsxfun – Apply element-by-element binary operation to two arrays with singleton expansion enabled Syntax 1 C = bsxfun(fun,A,B) Description C = bsxfun(fun,A,B) applies an element-by-element binary operation to arrays A and B, with singleton expansion enabled. fun is a function handle,...
  • arrayfun
    By matlabtutorials on December 5, 2009 | No Comments  Comments
    arrayfun – Apply function to each element of array Syntax 1 2 3 4 A = arrayfun(fun, S) A = arrayfun(fun, S, T, ...) [A, B, ...] = arrayfun(fun, S, ...) [A, ...] = arrayfun(fun, S, ..., 'param1', value1, ...) Description A = arrayfun(fun, S) app...
  • idivide
    By matlabtutorials on December 5, 2009 | No Comments  Comments
    idivide – Integer division with rounding option Syntax 1 2 3 4 5 6 C = idivide(A, B, opt) C = idivide(A, B) C = idivide(A, B, 'fix') C = idivide(A, B, 'round') C = idivide(A, B, 'floor') C = idivide(A, B, 'ceil') Description C = idivide(A, B, o...
  • floor
    By matlabtutorials on December 5, 2009 | No Comments  Comments
    floor – Round toward negative infinity Syntax 1 B = floor(A) Description B = floor(A) rounds the elements of A to the nearest integers less than or equal to A. For complex A, the imaginary and real parts are rounded independently. Examples 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 a...
  • fix
    By matlabtutorials on December 5, 2009 | No Comments  Comments
    fix Round towards zero. fix(X) rounds the elements of X to the nearest integers towards zero. Syntax 1 B = fix(A) Description B = fix(A) rounds the elements of A toward zero, resulting in an array of integers. For complex A, the imaginary and real parts are rounded independently...