A..12.2 fprintf()

disp() で表示するのは大雑把すぎる。 C 言語の printf() はないけれど、 fprintf() というのがある。
   fprintf('n=%d, t=%5.2f\n', n, t);
のようなことが出来る。Cプログラマーには説明が不要だろう (printf("n=%d, t=%5.2f\n", n, t); と同じことをする)。

桂田 祐史
2018-11-02