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