nim sum

Version 1.0.0.0 (1.42 KB) by Apoio
function that computes the nim sum
232 Downloads
Updated 17 May 2012

View License

% nimsum(a,b) returns the nim sum of a and b
% nimsum(V) returns the nim sum of the elements of V
% nimsum(M) returns a vector with the nim sums of the columns of M
% nimsum(V,a) returns a vector with the nim sums of V(i) and a
% nimsum(a,V) returns a vector with the nim sums of a and V(i)
% nimsum(M,a) returns a matrix with the nim sums of M(i,j) and a
% nimsum(a,M) returns a matrix with the nim sums of a and M(i,j)
% nimsum(V,W) returns a vector with the nim sums of V(i) and W(i)
% nimsum(M,N) returns a matrix with the nim sums of M(i,j) and N(i,j)

Cite As

Apoio (2024). nim sum (https://www.mathworks.com/matlabcentral/fileexchange/36750-nim-sum), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Number games in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0