This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Display variable text centered on masked subsystem icon


fprintf(format, var)


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.


The command


displays the text 'Hello' on the icon.

The command

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

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

See Also

| |

Introduced before R2006a

Was this topic helpful?