Getting Help
This example shows how to display help for MATLAB using the 'help' command.
The command 'help' lists all primary help topics in the Command Window. The format 'help name' displays the help text for the functionality specified by name, such as a function, method, class, or variable.
disp('Display help for the ''close'' function.') disp('>> help close') help close
Display help for the 'close' function.
>> help close
close - Close one or more figures
This MATLAB function closes the current figure.
Syntax
close
close(fig)
close force
close all
close all hidden
close all force
status = close(___)
Input Arguments
fig - Figure to close
one or more Figure objects, figure numbers, or figure names
Examples
openExample('graphics/DeleteASingleFigureExample')
openExample('graphics/DeleteMultipleFiguresExample')
openExample('graphics/DeleteFigureWithSpecifiedNumberExample')
openExample('graphics/DeleteFigureWithSpecifiedNameExample')
openExample('graphics/VerifyFiguresWasDeletedExample')
openExample('graphics/DeleteAllFiguresSimultaneouslyExample')
openExample('graphics/DeleteAllFiguresWithVisibleOrHiddenHandleExample')
openExample('graphics/DeleteFigureWhoseWindowCannotBeClosedExample')
See also delete, figure, gcf, Figure
Introduced in MATLAB before R2006a
Documentation for close
doc close
Other uses of close
autosar.arch.Model/close
bloomberg/close
bloombergBPIPE/close
bloombergEMSX/close
bloombergServer/close
blp/close
cdflib/close
coder.buildstatus/close
coder.report/close
cqg/close
database.apacheCassandra.connection/close
database.mongo.connection/close
database.mysql.connection/close
database.neo4j.http.Neo4jConnect/close
database.odbc.connection/close
database.postgre.connection/close
database.preparedstatement.SQLPreparedStatement/close
deep.TrainingInfo/close
driving.connector.Connector/close
emsx/close
filterAnalyzer/close
fred/close
genomicsViewer/close
haver/close
ImageAdapter/close
images.blocked.Adapter/close
instrument/close
lidar.blocked.Adapter/close
lidar.syncImageViewer.SyncImageViewer/close
matlab.desktop.editor.Document/close
matlab.internal.cef.webwindow/close
matlab.io.hdf4.sd/close
matlab.io.hdfeos.gd/close
matlab.io.hdfeos.sw/close
matlab.io.sftp.SFTP/close
matlab.io.xml.dom.FileWriter/close
matlab.project.Project/close
matlabshared.asyncio.internal.Channel/close
mlreportgen.dom.Document/close
mlreportgen.ppt.Presentation/close
mlreportgen.report.Report/close
mlreportgen.utils.word/close
moneynet/close
moneynetws/close
netcdf/close
numerixCrossAsset/close
parallel.Pool.PollableDataQueue/close
parallel.pool.PollableDataQueue/close
roadrunner/close
safetyAnalysisMgr.Spreadsheet/close
serial/close
sim3d.World/close
Simulink.data.adapters.BaseMatlabFileAdapter/close
Simulink.data.Dictionary/close
Simulink.sdi/close
siteviewer/close
slreq.ReqSet/close
sltest.harness/close
sltest.testmanager.TestFile/close
sltest.testmanager/close
sqlite/close
systemcomposer.allocation.AllocationSet/close
systemcomposer.arch.Model/close
systemcomposer.profile.Profile/close
target.connection/close
target.ExecutionTool/close
Tiff/close
tlkrs/close
wind/close
xtrdr/close