language-icon Old Web
English
Sign In

Writing Script Files

2019 
The MATLAB® command line is suitable for checking simple calculations and exploring how individual functions work. However, for most tasks it is more efficient to write your code in script files. In this chapter you will learn how to create, edit and save script files, add descriptive text that automatically generates a documentation file for your script, split your code into manageable sections, use the MATLAB Editor to identify coding errors and use it to help debug code and determine how much each command in your code contributes to the overall run time. The chapter will cover writing scripts in both the standard editor and the Live Editor, a relatively recent feature of MATLAB that enables live scripts to be created which can include formatted text, images, equations and user-controlled input.
    • Correction
    • Source
    • Cite
    • Save
    • Machine Reading By IdeaReader
    0
    References
    0
    Citations
    NaN
    KQI
    []
    Baidu
    map