Tagged: Examples

arrayfun

arrayfun – Apply function to each element of array Syntax A = arrayfun(fun, S) A = arrayfun(fun, S, T, …) [A, B, …] = arrayfun(fun, S, …) [A, …] = arrayfun(fun, S, …, ‘param1’,...

idivide

idivide – Integer division with rounding option Syntax 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 =...

matlab

floor

Matlab Floor Command floor – Round toward negative infinity Syntax B = floor(A) Description B = floor(A) rounds the elements of A to the nearest integers less than or equal to A. For complex...

round

round Round towards nearest integer. round(X) rounds the elements of X to the nearest integers. See also floor, ceil, fix. Syntax Y = round(X) Description Y = round(X) rounds the elements of X to...

accumarray

Construct array with accumulation Syntax A = accumarray(subs,val) A = accumarray(subs,val,sz) A = accumarray(subs,val,sz,fun) A = accumarray(subs,val,sz,fun,fillval) A = accumarray(subs,val,sz,fun,fillval,issparse) A = accumarray({subs1, subs2, …}, val, …) Description accumarray groups elements from a data...

abs

Absolute value and complex magnitude Syntax abs(X) Description abs(X) returns an array Y such that each element of Y is the absolute value of the corresponding element of X. If X is complex, abs(X)...

rmpath

rmpath Remove directory from search path. rmpath DIRNAME removes the specified directory from the current matlabpath. rmpath DIR1 DIR2 DIR3 removes all the specified directories from the path. Use the functional form of RMPATH,...