- Aide Scilab
- Entrées/Sorties [fichiers]
- chdir
- fullfile
- getlongpathname
- getshortpathname
- mkdir
- pwd
- rmdir
- basename
- copyfile
- createdir
- deletefile
- dir
- dirname
- dispfiles
- fileext
- fileinfo
- fileparts
- filesep
- findfiles
- fprintf
- fprintfMat
- fscanf
- fscanfMat
- fullpath
- get_absolute_file_path
- getdrives
- getrelativefilename
- %io
- isdir
- isfile
- listfiles
- listvarinfile
- ls
- maxfiles
- mclearerr
- mclose
- mdelete
- meof
- merror
- mfprintf
- mscanf
- mget
- mgetl
- mgetstr
- mopen
- movefile
- mput
- mputl
- mputstr
- mseek
- mtell
- newest
- pathconvert
- pathsep
- removedir
- save_format
- scanf
- scanf_conversion
- sscanf
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
mfprintf
converts, formats, and writes data to a file
Calling Sequence
mfprintf(fd,format,a1,...,an);
Arguments
- fd
scalar, file descriptor given by
mopen
(it's a positive integer).if fd equals 0 redirection in stderr.
if fd equals 6 redirection in stdout.
OBSOLETE :The value
-1
refers to the default file ( i.e the last opened file).- format
a Scilab string describing the format to use to write the remaining operands. The format operand follows, as close as possible, the C printf format operand syntax.
- str
a character string, string to be scanned.
- a1,...,an
Specifies the data to be converted and printed according to the format parameter.
Description
The mfprintf
function is a interface for C-coded version of
fprintf
functions.
The mfprintf
function writes formatted operands
to the file specified by the file desciptor fd
. The
argument operands are formatted under control of the format
operand.
this function may be used to output column vectors of numbers and string vectors without an explicit loop on the elements. In that case this function iterates on the rows. The shortest vector gives the number of time the format has to be iterated.
An homogeneous sequence of identical type parameters can be replaced by a matrix
Examples
See Also
- mclose — close an opened file
- meof — check if end of file has been reached
- fprintfMat — Write a matrix in a file.
- mfscanf — reads input from the standard input (interface to the C scanf function)
- fscanfMat — Reads a Matrix from a text file.
- mget — reads byte or word in a given binary format and convert to double
- mgetstr — read a character string from a file
- mopen — open a file
- mprintf — converts, formats, and writes data to the main scilab window
- mput — writes byte or word in a given binary format
- mputstr — write a character string in a file
- mscanf
- mseek — set current position in binary file.
- mtell — binary file management
- mdelete — Delete file(s)
- printf_conversion — printf, sprintf, fprintf conversion specifications
<< merror | Entrées/Sorties [fichiers] | mscanf >> |