simple program to run on matlab to control servo motor,using serial port.

yes i have seen few tutorials and i have managed to connect the matlab with arduino uno with the program
% connect the board
a=arduino('COM21');

% attach servo #1
a.servoAttach(9);

% move servo #1 to 50 degrees position
a.servoWrite(9,50);

% reads angle from servo #1
val=a.servoRead(9);

% attach servo #1
a.servoDetach(9);

% close session
delete(a)
and i have uploaded adiosvr into the arduino uno, but i didn't understand how to use serial port,so if u give me a example for using it for a single or two servo motor i will follow it,i needed serial port because i heard its sends signal faster.for coonecting above code in matlab-arduino and for servo motor to run it takes about 10 seconds,but i need this actuation in less than a second.