3.0

3.0 | 2 ratings Rate this file 10 Downloads (last 30 days) File Size: 1.6 KB File ID: #11725

Display text separator

by Miroslav Balda

 

19 Jul 2006 (Updated 19 Jul 2006)

Creates separating text line on display

| Watch this File

File Information
Description

The function can be used for producing better looking displays|records or for separating blocks of outputs in iterations. It creates a separating text line on the screen and in records (diaries). The user may define text which will be placed in the middle of the line. The length of the separator is text-length independent.

Acknowledgements
This submission has inspired the following:
Smart text separator
MATLAB release MATLAB 7.2 (R2006a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
03 Sep 2007 Dimitri Shvorob

.. or, you can use something like
> repmat('-',1,100)

03 Sep 2007 Miroslav Balda

It looks that you did not read, what the widget is able to do. Your repmat(...) is only one of possible statements doing the same underscore good for primitive separating sections on display. However, when creating records, it is possible to make more complicated outputs, say,

separator([mfilename ' ' datum],'@',33),

which may be done by other MATLAB statements, but by more complicated way. Sorry, but I don't agree with your evaluation.

20 Jun 2011 Dennis  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
text Miroslav Balda 22 Oct 2008 08:32:44
record Miroslav Balda 22 Oct 2008 08:32:45
separator Miroslav Balda 22 Oct 2008 08:32:45

Contact us at files@mathworks.com