- Ajuda Scilab
- Arquivos : funções de Entrada/Saída
- Directory
- Paths - Filenames
- fileinfo
- getmd5
- newest
- sscanf
- copyfile
- deletefile
- dispfiles
- findfiles
- fprintf
- fprintfMat
- fscanf
- fscanfMat
- %io
- isfile
- listfiles
- listvarinfile
- maxfiles
- mclearerr
- mclose
- mdelete
- meof
- merror
- mfprintf
- mfscanf
- mget
- mgetl
- mgetstr
- mopen
- movefile
- mput
- mputl
- mputstr
- mseek
- mtell
- save format
- scanf
- scanf_conversion
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
However, this page did not exist in the previous stable version.
fprintf
Emulator of C language fprintf function. This function is obsolete.
Calling Sequence
fprintf(file, format, value_1, ..., value_n)
Arguments
- format
a Scilab string. It specifies a character string combining literal characters with conversion specifications.
- value_i
specifies the data to be converted according to the
format
parameter.- file
a Scilab string specifying a file name or a logical unit number (see file)
Note that if
file
=0, the message will be display on standard error stream (stderr).
Description
This function is obsolete and will be removed in Scilab 5.5.0, use preferabily the mfprintf function which is much more
compatible with the C fprintf functionalities. |
The fprintf
function converts, formats, and writes
its value
parameters, under control of the format
parameter, to the file specified by its file
parameter.
The format
parameter is a character string that contains two
types of objects:
- Literal characters
which are copied to the output stream.
- Conversion specifications
each of which causes zero or more items to be fetched from the
value
parameter list. See printf_conversion for details.
If any value
s remain after the entire format
has been
processed, they are ignored.
Examples
History
Version | Description |
5.4.1 | Function tagged as obsolete. Will be removed in 5.5.0. |
See Also
- mfprintf — converts, formats, and writes data to a file
- string — conversão para string (cadeia de caracteres)
- print — imprime variáveis em um arquivo
- write — Escrita em arquivo formatado
- format — impressão de números e formato de exibição
- disp — exibição de variáveis
- file — Gerenciamento de arquivos
- mprintf — converts, formats, and writes data to the main scilab window
- msprintf — converts, formats, and writes data in a string
- printf_conversion — Especificações de conversão de mprintf, msprintf, mfprintf
Report an issue | ||
<< findfiles | Arquivos : funções de Entrada/Saída | fprintfMat >> |