| Database Toolbox | ![]() |
Customized Display of Results in the Report Generator
If the MATLAB Report Generator is installed, you can customize the display of results using that product.
databasetlbx.rpt (in $matlabroot/toolbox/database/vqb). This is a sample report template. You can create and use your own reports.
Report Generator -> Report
databasetlbx.rpt, select Table - ans.
'ans' with the Workspace variable name
you had assigned to the query result in the Visual Query Builder, for
example, 'A'.
0.
A, to include the field names so that they will appear in the report. For example, in the Command Window, redefine A using
In the Report Generator, change the Header/Footer Options, Number of header rows to 1 (refer back to step 4-c for details). The output report now shows the field names as headings.
Each row represents a record from the database. For example, sales for item 400876 are 3000 in January, 2400 in February, and 1500 in March.
| Report Display of Results in a Table | Fine-Tuning Queries Using Advanced Query Options | ![]() |
© 1994-2005 The MathWorks, Inc.