matlab GUI and arduino ???

My project is motor control. So can i use matlab GUI to set the setpoint or pwm and that dont affect to the code was complied in arduino, is it possible :smiley: . thank you.

Are you asking if you can use matlab to send a setpoint or PWM point command to an arduino? Yes, you can....

http://playground.arduino.cc/Interfacing/Matlab

Thank you, i read it and i didn't see the function to send a value to Setpoint variable.

is this code correct?

a.setpoint(1000);