%function send(x,y)
%realtime display/record
s2 = serial('COM2', 'BaudRate', 9600,'databits',7, 'timeout',2, 'stopbit', 1);
fopen(s2)
fwrite(s2,x)
fwrite(s2,y)
fclose(s2)
%end

