Skip to Main Content Skip to Search
Product Documentation

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.

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

disp | port_label | text

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS