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!