% 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
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |