permmoves(sigma)

Identifies whether the domain element of the permutation is moved by permutation
85 Downloads
Updated 3 Aug 2015

View License

For the permutation sigma defined from set X to X the function permmoves(sigma) verifies whether the input permutation moves an element of X or fixes an element of X.

Cite As

HARI BASKAR RANGANATHAN (2024). permmoves(sigma) (https://www.mathworks.com/matlabcentral/fileexchange/52306-permmoves-sigma), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers
Tags Add Tags

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.3.3

additional command is included to check whether exactly one argument is entered.
Comment lines enhanced.

1.0.3.2

help permmoves is enhanced.

1.0.3.0

comments lines are rearranged
for loop is replaced with "mfbin = (sigma ~= 1:L);"
output is received only as numeric array (second output argument is removed)
help is enhanced with an example. preallocating mfbin in removed, as mfbin is not created dynamically.

1.0.2.2

small letter 'l' is replaced with capital letter 'L', preallocating the cell array is done by using cell(1,L), Error message is changed from 'Input a valid permutation' to 'Enter a valid permuation'

1.0.2.1

Addition: If the input argument is not a valid permutation, function will display an error message

1.0.2.0

Most of the suggestion received through comments were incorporated. Function's output arguments are modified to receive the numerical array output as first (default) output and the second output argument explains the first argument in detail.

1.0.1.1

Comment lines updated

1.0.1.0

Summary Updated