SUNY Geneseo Department of Computer Science


“For” Loops, Day 3

Friday, March 14

CSci 120, Spring 2014
Prof. Doug Baldwin

Return to List of Lectures

Previous Lecture

Misc

Math dept soliciting scholarship applications

Exam 1 ready to return

            function z = question2( x, y )
                z = 3 * x - 2 * y;
            end
        
         >> question2( 3, 8 )

Questions?

What’s a function handle?

       sqrt( 16 )
       ans =
            4
       f = @sqrt
       f = 
           @sqrt
       f( 16 )
       ans =
            4
       integral( @sqrt, 0, 4 )
       ans =
           5.3333
       integral( @(x)x.^2, 0, 4 )
       ans =
          21.3333

While Loops Lesson

Read / watch

Handout

Next

“Catch-up” day

No new readings or videos

Finish lessons through lesson 8


Next Lecture