满意答案
庞潭40795045
2014.11.16
采纳率:51% 等级:11
已帮助:1523人
没什么特殊的用途,就是把文件分成几个部分,这样的话便于查看和调试。这样可以只运行一部分,你可以查看一下下面的这段帮助文件。
#
IntheMATLABEditor,selectCell>EnableCellMode.ItemsintheCellmenubecomeselectable.Thecelltoolbarappears,unlessyouhadpreviouslyhiddenit.Withcellmodeenabled,hideorshowthetoolbarbyright-clickingintheEditormenubarortoolbarsandselectingCellToolbarfromthecontextmenu.
#
DefinetheboundariesofthecellsinanM-filescriptusingcellfeatures.Cellsaredenotedbyaspecializedcommentsyntax,%%.Fordetails,seeDefiningCells.
#
Afteryoudefinethecells,usecellfeaturestonavigatequicklyfromcelltocellinyourfile,evaluatethecodeinacellinthebaseworkspace,andviewtheresults.Tofacilitateexperimentation,usecellfeaturestomodifyvaluesincells,andthenreevaluatethemtoseehowdifferentvaluesimpacttheresult.Fordetails,seeEvaluatingM-FileCells.
00分享举报