Join Patrick Royal for an in-depth discussion in this video Adding program documentation, part of Up and Running with MATLAB.
- View Offline
- Exercise Files
In previous videos we've looked at the tools Matlab provides to write and debug …good programs. But writing good code is only half the battle. …In the modern world, the vast majority of programming projects are much to large …for an individual to complete. So documenting your code in a readable …fashion is of paramount importance. Let's look at the syntax for adding …comments and help files in Matlab. In this video we'll use the …practice_script.m file that you created in the creating scripts video, earlier in …this chapter. To designate a line, or the latter part …of a line as a comment. Simply put a percent sign directly before …the comment. In this example, you might want to …clarify the first line of code, to let the reader know that it is converting the …CSV file into a MatLab matrix. So you can simply write percent.…
Converts CSV to matrix. Another common use of commenting is for …debugging purposes. Commenting out a suspect line is an easy …way to see if it was the command causing whatever error the program is throwing. …
- Installing MATLAB
- Working with MATLAB variables
- Working with matrix and scalar operations
- Creating functions
- Understanding performance considerations
- Building basic plots
- Creating responsive programs
- Editing variables manually
- Working with the Statistics Toolbox
Skill Level Intermediate
PHP with MySQL Essential Trainingwith Kevin Skoglund14h 32m Beginner
1. General Concepts
2. Core MATLAB Syntax
3. Programming in MATLAB
4. Data Representations
5. External Toolboxes
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.