Difference between fprintf and fwrite?
Ältere Kommentare anzeigen
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!
Akzeptierte Antwort
Weitere Antworten (1)
Sachin Ganjare
am 25 Okt. 2012
1 Stimme
fprintf blocks the command line to execute other commands while the data is getting transferred while fwrite doesn't.
4 Kommentare
Ivana
am 25 Okt. 2012
Sachin Ganjare
am 25 Okt. 2012
fprintf() is slow, because it does formatting. Writing one character at a time is slow in any case.
Sachin Ganjare
am 25 Okt. 2012
Also refer below link:
Hope it helps!!!
Ivana
am 25 Okt. 2012
Kategorien
Mehr zu Whos finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!