Arduino with matlab serial communication

Hello guys,

ARDUINO CODE

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);

}
}

MATLAB CODE

s = serial ( 'COM4');
zaman=100;
i=1;
fopen(s);
while(i<zaman)
fprintf(s, 'Seri haberleşme bilgisi');
out = fscanf(s)

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..

i can not save variables on matlab

This sounds like a question for a Matlab Forum ?

...R

Robin2:
This sounds like a question for a Matlab Forum ?

...R

He posted the same question 2 days ago.
http://forum.arduino.cc/index.php?topic=412227.msg2837825#msg2837825

This new post has been reported to the moderator.