About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
  • Last update: 5 years ago
  • Total downloads: 81
  • Operating system: Linux, Mac OS X, Win All, BSD, Solaris
  • Publisher: Brice Semmens
See full specifications

scripts default iconswap.m (Scripts) Publisher's description

This function carries out a swap algorithm as described in Stone and Roberts (1990)

This function carries out a swap algorithm as described in Stone and Roberts (1990), Oecologia 85:74-79. The data matrix must be organized with sites (islands) as rows, and species as columns. The function only works with binary matrices (but can be easily modified to convert abundance matrices).

"Swapping" randomly shuffles a binary matrix while keeping the row and column sums the same.

To call the function, send the data matrix and the number of swaps you wish to have carried out: swap(matrix,1000). The function returns the shuffled matrix. For each swap, the function randomly identifies two rows and columns such that:


and then switches (swaps) the 0's and 1's within the columns.

Written by Brice X. Semmens (semmens@u.washington.edu), 03/26/03
Comments and modifications/improvements welcome.

System Requirements:

MATLAB 5.3.1 (R11.1)
Program Release Status: New Release
Program Install Support: Install and Uninstall

swap.m (Scripts) Tags:

Click on a tag to find related softwares

Is swap.m (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.