GPRINTF

General replacement for fprintf which allows printing formatted text to separate editable window.
2,6K Downloads
Aktualisiert 31. Mär 2016

Lizenz anzeigen

GPRINTF is a general replacement for the built-in fprintf function. In addition to printing to a file or the command window, GPRINTF can print formatted output to one or more display windows. Each display window has automatic scroll bars and can be independantly positioned and editted. This distribution includes an S-function wrapper for use with Simulink.
Features include:
File: open, save, save as, close
Edit: cut, copy, paste, clear
Format: font, wrap (on/off)
Automatic vertical / horizontal scroll bars
Full access to text and display properties via object handle.

Example:
>> gprintf(-1,'pi is approximately = %6.4f\n',pi)
>> gprintf(-1,'HELLO WORLD\n')

creates "Display Box 1" with the string "pi is approximately = 3.1416" on the first line and "HELLO WORLD" on the second line. Use the pull-down menus to customize the display or save its contents to a file.

Zitieren als

Mark Brown (2024). GPRINTF (https://www.mathworks.com/matlabcentral/fileexchange/1780-gprintf), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R13
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Entering Commands finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Veröffentlicht Versionshinweise
2.2.0.0

Added BSD License.

1.0.0.0

GPRINTF has been superseded by JPRINTF. The new JPRINTF has the same functionality, but is completely written in Java and is platform independent. GPRINTF users are urged to switch to JPRINT. GPRINTF will no longer be maintained.