meaning of f in fprintf function
47 次查看(过去 30 天)
显示 更早的评论
So this is just a general question, as I familiarize myself with the fprintf and all other glorious functions...
When I use the /f or form feed as it's called, what's that actually doing? What does 'form feed' mean?
Also does anyone know why it's 'fprintf' and not just 'print'?
Thanks in advance!
0 个评论
采纳的回答
Chunru
2024-3-20
In old days, the command \f is used to make a printer to move to beginning of next pages.
fprintf or print or printf are used by different programming languages for the similar (but may be different) purpose. The begining "f" means file print. The ending "f" means the formatted print.
8 个评论
Stephen23
2024-3-20
编辑:Stephen23
2024-3-20
"I wonder why pi is a special case here"
PI is not a special case here.
PI is just a convenient binary floating point value that I used to demonstrate the effect of different formatting operators with. Forget about PI, you can pick any other binary floating point values with fractional part.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!