MATLAB 的 fopen 函数中的自动刷新是什么?

What is automatic flushing in MATLAB's fopen function?

fopen 属性中,我们可以为 without automatic flushing 选项设置 'W' 和 'A'。这些和使用 automatic flushing(默认选项)有什么区别?

当自动刷新打开时,matlab 会在任何调用 fwrite 后有效地将 写入磁盘 ,即使写入非常小的数据块也是如此。

禁用自动刷新时,matlab 仅写入 内部内存缓冲区 并仅在调用 fclose (或缓冲区为满)。这可能会提高性能,因为写入操作所需的磁盘访问较少。