Desktop Tools and Development Environment Previous page   Next Page

MAT-Files

The MAT-file save options apply when you use the save function and the Save menu items (for MAT-files) in desktop tools. This preference also applies to Fig-files, which includes GUIs you create with GUIDE.

By default, MATLAB compresses the data when saving a MAT-file, thereby reducing the storage space required. When you load the MAT-file, MATLAB automatically uncompresses the data. In addition, MATLAB uses Unicode encoding for strings when you save a MAT-file, making the data accessible to other MATLAB users, regardless of the default character encoding scheme used by their systems.

Prior releases of MATLAB did not save compressed MAT-files. They also did not use Unicode character encoding, which sometimes prevented the exchange of MAT-files among users, particularly when they used localized systems.

The default preference for saving prevents you from using the MAT-files with MATLAB Version 6 or 6.x. To save MAT-files for use with a previous version, select the preference Ensure backward compatibility (-v6). Alternatively, you can override the preference by using the save function with the-v6 option, which, for occasional use, might be more convenient than the changing the preference. For more information, see the save reference page.

Confirmation Dialogs

Use these preferences to instruct MATLAB to display or not display specific confirmation dialog boxes.

Image of Confirmation Dialogs Preferences panel.

When the check box for a confirmation dialog is selected and you perform the action it refers to, the confirmation dialog box appears. If you clear that check box, the dialog box does not appear when you perform the action.

When the confirmation dialog box does appear, it includes a Do not show this prompt again check box. If you select the check box in the dialog box, it automatically clears the check box for the confirmation preference.

For example, select the check box Warn before deleting Command History items. Then select Edit -> Delete Selection in the Command History, MATLAB displays the following confirmation dialog box.

Image of Command History delete confirmation dialog box.

If you select the Do not show this prompt again check box and click OK, the confirmation dialog box will not appear the next time you delete items from the Command History window. In addition, the Warn before deleting Command History items check box in the Confirmations Dialogs preference panel is cleared.

The following table summarizes the confirmation dialog boxes.

Confirmation Dialogs Check Box Item
About the Confirmation Dialog Box
For More Information 
Warn before deleting Command History items
Appears when you delete entries from the Command History window.
Deleting Entries from the Command History Window
Warn before clearing the Command Window
Appears when you clear the Command Window content using menu items. Does not appear when you use the clc function.
Clearing the Command Window
Prompt when editing files that do not exist
Appears when you type edit filename, if filename does not exist in the current directory or on the MATLAB path.
Function Alternative
Confirm before exiting MATLAB
Appears when you quit MATLAB.
Quitting MATLAB
Prompt to save on activate
Appears when you have unsaved changes to a figure and M-file, and then activate the GUI, by clicking the Run button, for example.
Layout Editor Preferences in the GUIDE documentation
Prompt to save on export
Appears when you have unsaved changes to a figure and M-file, and then select File -> Export.
Layout Editor Preferences in the GUIDE documentation
Confirm when deleting variables
Appears when you delete variables from the workspace using menu items. Does not appear with the clear function.
Deleting Workspace Variables


Previous page  General Preferences for MATLAB About Preferences Next page

© 1994-2005 The MathWorks, Inc.