Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Vue Injector 3.3
Spectrum Analyzer pro Live 2019
Devart Excel Add-in for HubSpot 2.1
RentALLScript - Airbnb clone 2.2
SuiteCRM Theme Customization 7.11.6
iScripts NetMenus 3.1
iScripts EasyIndex 2.2
iScripts EasySnaps 2.0
Australia MyPost shipping For Magento 2 1.0.0
Australia Post eParcel For Magento 1.1.1
Source Control for SQL Server 2.0
Answers phpSoftPro 3.12
Exlcart 2.0
School College ERP 1.3.2
White-label Grocery Delivery App Solution 2.0
Top Code
iScripts EasySnaps 1
iScripts EasyIndex 1
iScripts NetMenus 2.0
ATN Site Builder 3.0
Azizi search engine script PHP 4.1.10
IcrediBB Bulletin Board System 1.0
Vue Injector 3.3
DBForms from MSAccess to PHP+PostgreSQL 1.0.0
Guestbook PHP Script 1.1
School College ERP 1.3.2
Simple Comments Script 0.930
WSN Guest Script 1.22
JE Guestbook 1.1
ATN Resume Finder 2.0
Cover Flow FX 0.2.12
Top Rated
phpEnter 5.1.
Quick Maps For Dynamics CRM 3.1
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Display Formatted Text Table of Data 1.0
File ID: 83414






Display Formatted Text Table of Data 1.0
Download Display Formatted Text Table of Data 1.0http://www.mathworks.com/Report Error Link
License: Shareware
File Size: 10.0 KB
Downloads: 0
Submit Rating:
Display Formatted Text Table of Data 1.0 Description
Description: displaytable: prints formatted matrix of numerical data with headings

Syntax

displaytable(data, colheadings, wid, fms, rowheadings, fid, colsep, rowending)

Input:

data: a matrix or cell array, containing the data to be put in the table.
If a matrix the numbers in the table will be printed to using the default
format specifier, or the specifier(s) supplied in fms. data can also be a
cell array containing a mixture of strings and numbers. each cell in this
case can contain only a single scalar value. In this case numbers are
printed as in the matrix case, while strings are printed up to the
maximum width of the column.

colheadings: a cell array of strings for the headings of each column. Can
be an empty cell array if no headings are required.

wid: (optional) scalar or vector of column widths to use for the table.
If scalar, every column will have the same width. If a vector it must be
of the same length as the number of columns. If not supplied, and column
headers are supplied, the width of the widest column header will be used.
If not supplied and column headers are not supplied, a default with of 16
characters is used.

fms: (optional) a string, or cell array of strings containing format
specifiers for formatting the numerical output in each column. If a
single string, the same specifier is used for every column. If not
supplied, the 'g' specifier is used for every column.

rowheadings: (optional) a cell array of strings for the start of each
row. Can be an empty cell array if no row headings are required. If row
headings are supplied, the first column will be made wide enough to
accomodate all the headings.

fid: (optional) the file id to print to. Use 1 for stdout (to print to
the command line).

colsep: (optional) A string or character to insert between every column.
The default separation character is '|'. A table suitible for inclusion
in a LaTeX document can be created using the '&' charcter, for example.

rowending: (optional) An optional string or character to be appended at
the end of every row. Default is an empty string.

Examples

colheadings = {'number of projects','sales','profit'};
rowheadings = {'Jimmy Slick', 'Norman Noob'}
data = [3 rand(1) rand(1); 1 rand(1) rand(1)];

To format the first number in each row as a decimal (%d), the second
number %16.4f, and the third as %16.5E do the following:

wid = 16;
fms = {'d','.4f','.5E'};

In this case 16 will be the field width, and '.5E' is what to use for the
fms argument

fileID = 1;

>> displaytable(data,colheadings,wid,fms,rowheadings,fileID);
|number of projec | sales | profit
Jimmy Slick | 3 | 0.4502 | 5.22908E-001
Norman Noob | 1 | 0.9972 | 2.78606E-002

*******************

Unfortunately the file exchange does not use a fixed width font, hence the ugly example output above

License: Shareware

Related: appended, charcter, created, default, Examples, Norman, noob, slick

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 0



More Similar Code

WikiEdit is an WYSIWYG editor, but optimized to work with wiki-formatted text instead of HTML code. An WysiWiki editor.



Java Text Table Formatter is a Java library that renders tables made of characters. The user add cells and can add format characteristics like predefined/custom table styles, text alignment, abbreviation, column width, border types, colspan, etc.



Table of Contents Creator (TOCC) automatically generates a highly customizable dynamic site wide table of contents that is always up-to-date. All entries are navigable making your site very SEO friendly. TOCC can be configured to display static...



Display a text file in a popupmenu

Usuage: popupmessage(filename,window_name)

E.g., popupmessage('popupmessage.m','popupmessage.m');



Site Table of Contents plugin allows a users to easily create a page that lists all posts and their respective categories in an easy to use and dynamic way.

Installation :

1. Download the plugin archive and expand it (you've...



This plugin puts a table of contents on your page. You just need to type [toc="2,3" title="Table of contents"] in the page/post editor. That's it! You dont need to edit your themes source code. The plugin allows you to set a...



ASP .NET - The Repeater Control is an useful web based tutorial through which beginners can learn about the ASP.NET repeater control. The repeater control helps you to display the repeated list of data of the database table. In this tutorial the...



This sidebar widget will generate a table of contents from a category of posts.

It is intended for authors of web fiction but should be useful to anyone using posts to write a book or similar in a serialised format.

#...



Bar Graph is a JavaScript that can be implemented in your webpage to generate bar graph table of data with the data supplied to it. The values that are given in the stats array definition statement are charted out as a graph. The count variables...



createTable creates a 2D java-based table that enables display, editing and sorting of 1D and 2D data using familiar look-and-feel. Columns can be resized and sorted; data can be selected, printed, copied, pasted etc., including to/from Excel;...

User Review for Display Formatted Text Table of Data
- required fields
     

Please enter text on the image