Code covered by the BSD License  

Highlights from
jprintf

4.75

4.8 | 4 ratings Rate this file 10 Downloads (last 30 days) File Size: 27.85 KB File ID: #8641
image thumbnail

jprintf

by Mark Brown

 

04 Oct 2005 (Updated 27 Jun 2011)

JPRINTF allows printing formatted text to separate windows using MATLAB, Simulink, or Stateflow.

| Watch this File

File Information
Description

JPRINTF is a general replacement for the built-in fprintf function. In addition to printing to a file or the command window, JPRINTF can print formatted output to one or more text windows. The text windows resemble the command window and can be independantly positioned, editted, and printed.

The pull-down menus perform these functions:

File: open, save, save as, page setup, print, close

Edit: cut, copy, paste, select all, clear all

Format: font, foreground color, background color, wrap (on/off)

JPRINTF is programmed entirely in MATLAB and Java. It should work on any platform supported by The Mathworks. Included is a Simulink library that allows use of JPRINTF from within Simulink and Stateflow.

MATLAB release MATLAB 7.10 (2010a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
07 Oct 2005 Ryan Ollos  
06 Apr 2006 Malcolm Wood

Very nice and very useful! It would be even better if it gave easy access to window properties- title, icon, position, visibility etc.

09 Nov 2006 Emin Kutay

excellent code, just what I needed....

Many thanks

08 Jan 2007 Nelius Rossouw

I have used this for my thesis and it is really good. By using this you can really sort your data very neatly. The only thing it needs is a comand to clear the screen from the command window, something like jclc(-1).

30 Jul 2008 Thierry Dalon

Inconvenient of jprintf is that you can not change window properties like Name etc directly. (see Malcom comment) (or you need to know how to do this with Java commands)
I prefer the "old" gprintf. here you get a real Matlab figure and can change its properties via usual Matlab commands.
(set(gcf,'Name',...))

Please login to add a comment or rating.
Updates
27 Jun 2011

Switched from JPrinterWorks to native Java print method. Window now scrolls to the bottom. Added default font (Courier New 12pt). Added rudimentary API. Added find and findnext functions. Added standard Windows keyboard shortcuts.

Tag Activity for this File
Tag Applied By Date/Time
development environment Mark Brown 22 Oct 2008 08:01:51
formatted text Mark Brown 22 Oct 2008 08:01:51
edit window Mark Brown 22 Oct 2008 08:01:51
simulink Mark Brown 22 Oct 2008 08:01:51
stateflow Mark Brown 22 Oct 2008 08:01:51
fprintf Mark Brown 22 Oct 2008 08:01:51
gprintf Mark Brown 22 Oct 2008 08:01:51

Contact us at files@mathworks.com