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!