fprintf

Display variable text centered on masked subsystem icon

Syntax

fprintf(text)
fprintf(format, var)

Description

The fprintf command displays formatted text centered on the icon and can display format along with the contents of var.

    Note   While this fprintf function is identical in name to its corresponding MATLAB® function, it provides only the functionality described on this page.

Examples

The command

fprintf('Hello');

displays the string 'Hello' on the icon.

The command

fprintf('Juhi = %d',17);

uses the decimal notation format (%d) to display the variable 17.

See Also

| |

Was this topic helpful?