Back to Core Functions
sprintf
Format data into string
Syntax
s = sprintf(format, A1, A2, ...)
Description
Formats data according to format string. Supports %d (integer), %f (float), %s (string), %e (exponential).
Parameters
| Name | Description |
|---|---|
| format | Format string with conversion specifiers |
| A1, A2, ... | Values to format |
Returns
Formatted string