| Database Toolbox™ | ![]() |
| On this page… |
|---|
This section describes how to set VQB preferences to specify:
How NULL data in a database is represented after you import it into the MATLAB® workspace
The format of data retrieved from databases
The method of error notification
Click Query > Preferences. The Preferences dialog box appears.

Specify the Preferences settings as described in the following table.
Click OK.
Click Execute to rerun the query.
Information about the retrieved data appears in the Data area.
To see the results, enter A in the Command Window.
A =
125970 1400 1100 981
212569 2400 1721 1414
389123 1800 1200 890
400314 3000 2400 1800
400339 4300 0 2600
400345 5000 3500 2800
400455 1200 900 800
400876 3000 2400 1500
400999 3000 1500 1000
888652 0 900 821
NULL values appear as 0s instead of NaNs.
For more information about Preferences, see the setdbprefs function reference page.
Preferences apply only to the current MATLAB software session. They are not saved with queries. Default Preferences apply when you start a new session, or after you clear all variables (using, for example, the clear all command). It is a good practice to check Preferences settings before you run queries.
![]() | Getting Started with Visual Query Builder | Displaying Query Results | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |