MATLAB POLYSPACE 7 Instalační příručka Strana 371

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 618
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 370
Saving, Printing, and Closing Files in the Editor/Debugger
Note Save any M-files you create and any M-files from The MathWorks
thatyoueditinadirectorythatisnotinthe
matlabroot/toolbox directory
tree. If you keep your files in
matlabroot/toolbox directories, they can
be ov erwritten when you install a new version of MATLAB. Also note that
locations of files in the
matlabroot/toolbox directory tree are loaded and
cached in memory at the beginning of each MATLAB session to improve
performance. If you save files to
matlabroot/toolbox directories using an
external editor or add or remov e f iles from these directories using file sy stem
operations, run
rehash toolbox before you u se the files in the current session.
If you m ake changes to existing files in
matlabroot/toolbox directories u sing
an external editor, run
clear functionname before y ou use the f il es in the
current session. For more information, see
rehash or “Toolbox Path Caching
in MATLAB” on page 1-17.
Autosave
As you make changes to a file in the Editor/Debugger, every five m inutes the
Editor/Debugger automatically saves a copy of the file to a file of the s ame
name but with an
.asv extension. The autosave copy i s useful if you have
system problems and lose changes made to your file. In that event, you can
open the autosave version,
filename.asv,andthensaveitasfilename.m to
use the last good version of
filename. For example, if you edit filename.m
anddonotsaveitforfiveminutes,MATLABsavesthefileincludingthe
unsaved changes, to
filename.asv.
Use autosave preferences to turn the autosave feature off or on, to specify the
number of minutes between automatic saves, and to specify the file extension
and location for autosave files. For details, see in the online documentation.
If the file you are editing is in a read-only directory and the autosave
preference for location is the source file directory, an autosave copy of the
file is not made.
Deleting Autosave Files. By default, autosave files are not automatically
deleted when you delete the source file. TokeepautosavetoM-file
relationships clear and current, it is a good practice when you rename or
remove an M-file to delete or rename its corresponding autosave file.
6-63
Zobrazit stránku 370
1 2 ... 366 367 368 369 370 371 372 373 374 375 376 ... 617 618

Komentáře k této Příručce

Žádné komentáře