Recitation 11 Presentation

Recitation 11 Presentation - 14:440:127 Introduction to...

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

View Full Document Right Arrow Icon
14:440:127 Introduction to Computers for Engineers Recitation 11 Lecturer: Blase E. Ur Recitation Instructor: Bo Jin Recitation Instructor: Cyrus Gerami Recitation Instructor: Vishnu Vijayakumar Recitation Instructor: Wen Yueh
Background image of page 1

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

View Full DocumentRight Arrow Icon
14:440:127 Recitation 8 Recursion Recursive function y = myfactorial(x) if(x==1) y = 1; else Non Recursive function y = myfactorial(x) y = 1; for z = x:-1:1 y = y*z; Rutgers University School of Engineering y = x * myfactorial(x-1); end end
Background image of page 2
14:440:127 Recitation 8 Fibonacci Sequence Recursive function y = FibonacciN(n) if(n==1 | n==2) y = 1; else Non Recursive function y = FibonacciN(n) f(1) = 1; f(2) = 1; for z = 3:n Rutgers University School of Engineering y = FibonacciN(n-1) + FibonacciN(n-2); end f(z) = f(z-1) + f(z-2); end y = f(n);
Background image of page 3

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

View Full DocumentRight Arrow Icon
14:440:127 Recitation 8 Sparse Matrices a=zeros(100); a(15,26)=15; %80000 bytes b=sparse(a); %416 bytes a = rand(100); %80000 bytes Rutgers University School of Engineering b = sparse(a); %120404 bytes
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/11/2010 for the course 440 127 taught by Professor Blase during the Fall '09 term at Rutgers.

Page1 / 8

Recitation 11 Presentation - 14:440:127 Introduction to...

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

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