ENG1060 Lecture Notes - Lecture 3: Plain English, Matlab

80 views1 pages
Department
Course
Professor
Comments
Green%text
Declared%with%percentage symbol
Ignored%by%MATLAB
Used%to%provide%additional%info
How%and%why
Used%as%documentation%to%convey%the%purpose%of%the%code%block
Rules
Comment%as%you%write%code
Plain%English
Keep%concise
Maintain%same%style%throughout
Avoid%redundant%ones%(eg.%for%simple%var%declaration%or%math%ops)
Sections
Declare% with%double%percentage symbol
Use%"Run%Section"%button%instead%of%"Run"
Good0practices
Indentation%>>>%structuring
Easy%to%understand%
Meaningfulto%others
Esp%for%if-statements,%when%they%get%nested%too
Well%documented%and%easily%usable
Week$3:$Documentation
Saturday,%5%August%2017
08:30
Unlock document

This preview shows half of the first page of the document.
Unlock all 1 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers