- Scilab help
- Files : Input/Output functions
- basename
- chdir
- copyfile
- createdir
- deletefile
- dir
- dirname
- dispfiles
- fileext
- fileinfo
- fileparts
- filesep
- findfiles
- fprintf
- fprintfMat
- fscanf
- fscanfMat
- fullfile
- fullpath
- get_absolute_file_path
- getdrives
- getlongpathname
- getrelativefilename
- getshortpathname
- %io
- isdir
- isfile
- listfiles
- listvarinfile
- ls
- maxfiles
- mclearerr
- mclose
- mdelete
- meof
- merror
- mfprintf
- mscanf
- mget
- mgetl
- mgetstr
- mkdir
- mopen
- movefile
- mput
- mputl
- mputstr
- mseek
- mtell
- newest
- pathconvert
- pathsep
- pwd
- removedir
- rmdir
- 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
scanf
Converts formatted input on standard input
Calling Sequence
[v_1,...v_n]=scanf (format);
Arguments
- format
Specifies the format conversion.
Description
The scanf functions get character data on standard input (%io(1)), interpret it according to a format, and returns the converted results.
The format parameter contains conversion specifications used to interpret the input.
The format parameter can contain white-space characters (blanks, tabs, newline, or formfeed) that, except in the following two cases, read the input up to the next nonwhite-space character. Unless there is a match in the control string, trailing white space (including a newline character) is not read.
Any character except % (percent sign), which must match the next character of the input stream.
A conversion specification that directs the conversion of the next input field. see scanf_conversion for details.
See Also
- printf — Emulator of C language printf function
- read — matrices read
- fscanf — Converts formatted input read on a file
- sscanf — Converts formatted input given by a string
- scanf_conversion — scanf, sscanf, fscanf conversion specifications
<< save_format | Files : Input/Output functions | scanf_conversion >> |