| Contents | Index |
fprintf(text) 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
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.
disp | port_label | text

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 |