Connexions

Sections
You are here: Home » Content » Programming with M-files: For Loops

About: Programming with M-files: For Loops

Module by: Darryl Morrell. E-mail the author

View content

Metadata

Name: Programming with M-files: For Loops
ID: m13258
Language: English (en)
Summary: This is a tutorial on using for loops in m-file scripting environments.
Subject: Science and Technology
Keywords: for loop, MathScript, MATLAB, M-File, Octave
Document Type: -//CNX//DTD CNXML 0.5 plus MathML//EN
License: Creative Commons Attribution License CC-BY 2.0

Authors: Darryl Morrell (morrell@asu.edu)
Copyright Holders: Darryl Morrell (morrell@asu.edu)
Maintainers: Darryl Morrell (morrell@asu.edu)

Latest version: 1.5 (history)
First publication date: Jan 20, 2006 11:25 pm US/Central
Last revision to module: Sep 21, 2006 6:57 pm GMT-5

Module XML: m13258_1.5.cnxml

Version History

Version: 1.5 Sep 21, 2006 6:57 pm GMT-5 by Darryl Morrell
Changes:
Added flow chart and pseudo code

Version: 1.4 Aug 21, 2006 7:25 pm GMT-5 by Darryl Morrell
Changes:
Changed from MATLAB to m-file

Version: 1.3 Jan 26, 2006 3:50 pm US/Central by Darryl Morrell
Changes:
Removed the modeling example from this module so it can be placed in a separate module, and added formating and nested loop paragraphs.

Version: 1.2 Jan 24, 2006 9:41 pm US/Central by Darryl Morrell
Changes:
Added more information on loops with counting variables.

Version: 1.1 Jan 21, 2006 11:29 pm US/Central by Darryl Morrell
Changes:
Initial version of module.

How to Reuse and Attribute This Content

If you derive a copy of this content using a Connexions account and publish your version, proper attribution of the original work will be automatically done for you.

If you reuse this work elsewhere, in order to comply with the attribution requirements of the license (CC-BY 2.0), you must include

  • the authors' names: Darryl Morrell
  • the title of the work: Programming with M-files: For Loops
  • the Connexions URL where the work can be found: http://cnx.org/content/m13258/1.5/

See the citation section below for examples you can copy.

How to Cite and Attribute This Content

The following citation styles comply with the attribution requirements for the license (CC-BY 2.0) of this work:

American Chemical Society (ACS) Style Guide:

Morrell, D. Programming with M-files: For Loops, Connexions Web site. http://cnx.org/content/m13258/1.5/, Sep 21, 2006.

American Medical Assocation (AMA) Manual of Style:

Morrell D. Programming with M-files: For Loops [Connexions Web site]. September 21, 2006. Available at: http://cnx.org/content/m13258/1.5/.

American Psychological Assocation (APA) Publication Manual:

Morrell, D. (2006, September 21). Programming with M-files: For Loops. Retrieved from the Connexions Web site: http://cnx.org/content/m13258/1.5/

Chicago Manual of Style (Bibliography):

Morrell, Darryl. "Programming with M-files: For Loops." Connexions. September 21, 2006. http://cnx.org/content/m13258/1.5/.

Chicago Manual of Style (Note):

Darryl Morrell, "Programming with M-files: For Loops," Connexions, September 21, 2006, http://cnx.org/content/m13258/1.5/.

Chicago Manual of Style (Reference, in Author-Date style):

Morrell, D. 2006. Programming with M-files: For Loops. Connexions, September 21, 2006. http://cnx.org/content/m13258/1.5/.

Modern Languages Association (MLA) Style Manual:

Morrell, Darryl. Programming with M-files: For Loops. Connexions. 21 Sep. 2006 <http://cnx.org/content/m13258/1.5/>.