Difference between fprintf and fwrite?
Afficher commentaires plus anciens
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!
Réponse acceptée
Plus de réponses (1)
Sachin Ganjare
le 25 Oct 2012
1 vote
fprintf blocks the command line to execute other commands while the data is getting transferred while fwrite doesn't.
4 commentaires
Ivana
le 25 Oct 2012
Sachin Ganjare
le 25 Oct 2012
fprintf() is slow, because it does formatting. Writing one character at a time is slow in any case.
Sachin Ganjare
le 25 Oct 2012
Also refer below link:
Hope it helps!!!
Ivana
le 25 Oct 2012
Catégories
En savoir plus sur Whos dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!