Sign In | Subscribe

Enter your Sign on user name and password.

Forgot password?
  • Follow us on:
Start learning today, and be successful in your academic & professional career. Start Today!
Loading video...
This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of MATLAB
  • Discussion

  • Study Guides

  • Download Lecture Slides

  • Table of Contents

  • Related Books

Lecture Comments (3)

0 answers

Post by Mohsin Alibrahim on April 23, 2015

What is K ?

1 answer

Last reply by: Professor Arash Vafanejad
Mon Feb 10, 2014 9:27 PM

Post by Erdem Balikci on February 9, 2014

Why ncr stars from "1"?


  • The objective of this session is to learn about programs using for or while loops.
  • We already talked about for and how to use it, in this session we are considering cases that the number of repetitions is not predetermined. By that we mean the condition to end a loop is only satisfied during the execution of the loop itself. The best way to solve such problems is using the while statement.
  • The structure of while loop is as follows:
    • while condition
    • statements
    • end


Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.

  • Intro 0:00
  • Powerful Force Statement and Determinate 0:11
    • Indeterminate Repetition
  • Binomial Coefficient 0:50
    • For Loop
  • Determinate Repetition Using For 3:40
    • Indeterminate Repetition Using While
  • A Guessing Game 4:12
    • Create Steps to Build a Program
    • Implement with Syntax in MATLAB
    • Fixing Code Error
  • Condition and Loop 10:00