send array from matlab using serial communication
이전 댓글 표시
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
tamim ahmed
2016년 12월 4일
what is the arduino code to receive this data in arduino. TIA
채택된 답변
추가 답변 (1개)
Yefta Devian
2015년 5월 19일
0 개 추천
댓글 수: 1
Saishka Naidoo
2021년 1월 27일
Please can you attach the matlab and arduino code for what you have done.
카테고리
도움말 센터 및 File Exchange에서 MATLAB Support Package for Arduino Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!