Home > analyzePRF > utilities > swap.m

swap

PURPOSE ^

function [x,y] = swap(x,y)

SYNOPSIS ^

function [y,x] = swap(x,y)

DESCRIPTION ^

 function [x,y] = swap(x,y)

 assign <x> to <y> and assign <y> to <x>.

 example:
 [x,y] = swap(2,3);
 x==3 & y==2

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [y,x] = swap(x,y)
0002 
0003 % function [x,y] = swap(x,y)
0004 %
0005 % assign <x> to <y> and assign <y> to <x>.
0006 %
0007 % example:
0008 % [x,y] = swap(2,3);
0009 % x==3 & y==2

Generated on Wed 18-Jun-2014 21:47:41 by m2html © 2005