| Embedded IDE Link™ VS | ![]() |
close (vd,'filename','filetype')
close (vd,'filename','filetype') closes the file named 'filename' in the active project in the vd IDE window. If filename is not an open file in the IDE, MATLAB® returns a warning message. When you enter null value [] for filename, close closes the current active file in the IDE. filename must match exactly the name of the file to close. If you enter all for the filename, close closes all files in the project that are of the type specified by filetype.
Note CLOSE does not save the file before closing it and it does not prompt you to save the file. You lose any changes you made after the most-recent save operation. Use save to ensure that your changes are preserved before you close the file. |
The parameter 'filetype' is optional, with the default value of 'text'. Allowed 'filetype' strings are 'project', 'projectgroup', 'text', and 'workspace'. Here are some examples of close operation commands. In these examples, vd is an adivdsp object handle to the IDE.
close(vd,'all','project') — Closes all open project files
close(vd,'my.dpj','project') — Closes the open project my.dpj
close(vd,[],'project') — Closes the active open project
close(vd,'all','projectgroup') — Close all open project groups
close(vd,'myg.dpg','projectgroup') — Closes the project group myg.dpg
close(vd,[],'projectgroup') — Closes the active project group
close(vd,'all','text') — Close all text files
close(vd,'text.c','text') — Closes the text file text.c
close(vd,[],'text') — Closes the active text file
![]() | cd | delete | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |