Arduino with matlab serial communication

Hello guys,
int i;
void setup() {
// put your setup code here, to run once:
Serial.begin (9600);
}

void loop() {
// put your main code here, to run repeatedly:
i=0;
while(i<=50)
{
Serial.print("i=");
Serial.println(i);
i++;
delay(100);

}
}
This is my arduino code and i want to do serial communication with matlab.
I have some code blog but i can not save variables on matlab.
if there is anyone, pls help me
Thanks..

but i can not save variables on matlab.

Perhaps you should ask your Ford question at the Chevy dealer.

there are lots of arduino - matlab topics already here, most about how to send data to matlab from arduino, did you look at them?