Difference between fprintf and fwrite?
Mostrar comentarios más antiguos
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!
Respuesta aceptada
Más respuestas (1)
Sachin Ganjare
el 25 de Oct. de 2012
1 voto
fprintf blocks the command line to execute other commands while the data is getting transferred while fwrite doesn't.
4 comentarios
Ivana
el 25 de Oct. de 2012
Sachin Ganjare
el 25 de Oct. de 2012
fprintf() is slow, because it does formatting. Writing one character at a time is slow in any case.
Sachin Ganjare
el 25 de Oct. de 2012
Also refer below link:
Hope it helps!!!
Ivana
el 25 de Oct. de 2012
Categorías
Más información sobre Whos en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!