bluetooth with matlab

hello
I am attempting to send some information from Matlab, to an Arduino Uno, via bluetooth with

matlab program

b=Bluetooth('HC-06',1);
fopen(b);
for i=1:1:15

fprintf(b,i);
out(i) = fscanf(b,'%d');

end
fclose(b)

and arduino program

int matlabval=0;

void setup()
{
Serial.begin(9600);
}

void loop()
{
if (Serial.available() > 0) {
matlabval=Serial.read();

Serial.println(matlabval);

}
}

the output of arduino is

1
10
2
10
3
10
4
10
5
10
6
10
7
10
8
10
9
10
10
10
11
10
12
10
13
10
14
10
15
10

the number 10 is appear after each number ?why?

Thanks in advance!

ASCII line feed

I am willing to communicate between arduino and matlab via Bluetooth hc-06 module. The problem is it seems that I can not send any thing from matlab to arduino properly. However the status of Bluetooth object is open and the number of " ValuesSent " is showing that I am sending data but in Arduino site, the Serial.available() is always "0"!!! I am wandering it might be hardware issue!! Could you please help me to solve this?

Thanks

sh63:
I am willing to communicate between arduino and matlab via Bluetooth hc-06 module. The problem is it seems that I can not send any thing from matlab to arduino properly. However the status of Bluetooth object is open and the number of " ValuesSent " is showing that I am sending data but in Arduino site, the Serial.available() is always "0"!!! I am wandering it might be hardware issue!! Could you please help me to solve this?

Thanks

Most of us don't have Matlab.