L3 - OPTI 280: Computer Programming Workshop Robin Palit...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
OPTI 280 Spring 2010 Lecture 3 R. Palit, 1 OPTI 280: Computer Programming Workshop Robin Palit College of Optical Sciences, University of Arizona rpalit@optics.arizona.edu
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
OPTI 280 Spring 2010 Lecture 3 R. Palit, 2 General Comments Don’t use when whitespace when naming MATLAB scripts & functions. Plot Gaussian.m <= Error: whitespace PlotGaussian.m plot_gaussian.m Use the . only to denote file extension. hw1.1.m <= Error: Used two .’s. Ambiguous extension. hw_1_prob_1.m Look for useful functions similar to those presented in lecture & reading. sind() , cosd() , etc.
Background image of page 2
OPTI 280 Spring 2010 Lecture 3 R. Palit, 3 Flow Control In computer science, flow control refers to order which individual instructions of a program are executed. Type of flow control Continuation at a different statement (jump) Executing a set of statements only if some condition is met (choice) Executing a set of statements repeatedly (loop) Executing a set of distant statements, after which the flow of control returns
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/23/2010 for the course OPTI 280 taught by Professor Pau during the Spring '10 term at University of Arizona- Tucson.

Page1 / 16

L3 - OPTI 280: Computer Programming Workshop Robin Palit...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online