send array from matlab using serial communication
Mostrar comentarios más antiguos
hello, i need your help.
i want to send array from matlab to arduino using serial communication
here is my code
s1=serial('com1','BaudRate',9600)
fopen(s1)
A=[1,0,1,0,1,0]
fwrite(s1,A)
but it seems didnt work, because my arduino shows nothing. and can u help me how to print data which i sent?
regards,
1 comentario
tamim ahmed
el 4 de Dic. de 2016
what is the arduino code to receive this data in arduino. TIA
Respuesta aceptada
Más respuestas (1)
Yefta Devian
el 19 de Mayo de 2015
0 votos
1 comentario
Saishka Naidoo
el 27 de En. de 2021
Please can you attach the matlab and arduino code for what you have done.
Categorías
Más información sobre MATLAB Support Package for Arduino Hardware en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!