function [y,x] = swap(x,y) % function [x,y] = swap(x,y) % % assign to and assign to . % % example: % [x,y] = swap(2,3); % x==3 & y==2