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