FUNCTION REFERENCE

sscanf

Scan formatted values from character text.

Scan formatted values from character text.

Syntax

[values, count, message, nextIndex] = sscanf(text, format [, size])

count is the number of successful conversions, so sscanf('abc','%s') counts 1.

Example

sscanf('3 4 5','%d')'   % [3 4 5]

Differences from MATLAB: Conversions other than d, i, u, f, e, g, s, c, x and o are rejected.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.