Home > GLMdenoise > 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 Fri 01-Aug-2014 12:03:17 by m2html © 2005