Difference between fprintf and fwrite?
显示 更早的评论
Hello, I am using a serial communication and I want to send some data. I was wondering what is the actual difference between the fprintf and fwrite function? Thanks!
采纳的回答
更多回答(1 个)
Sachin Ganjare
2012-10-25
1 个投票
fprintf blocks the command line to execute other commands while the data is getting transferred while fwrite doesn't.
4 个评论
Ivana
2012-10-25
Sachin Ganjare
2012-10-25
fprintf() is slow, because it does formatting. Writing one character at a time is slow in any case.
Sachin Ganjare
2012-10-25
Also refer below link:
Hope it helps!!!
Ivana
2012-10-25
类别
在 帮助中心 和 File Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!