This preview shows page 1. Sign up to view the full content.
Unformatted text preview: hold on plot(x,fx) A A = [ s ones(11,1)] logy = log(y) p = A \ logy lambda = p(1) k = exp(p(2)) exp(1) x fx = k * exp(lambda * (x-1950)/50) plot(x,fx,'r') clf reset semilogy(t,y,'o') hold on semilogy(x,fx,'r') clc A A = [s .^ 3 , s .^ 2 , s , ones(11,1)] qrsteps(A);...
View Full Document
This note was uploaded on 12/27/2011 for the course CMPSC 110a taught by Professor Gilbert during the Fall '09 term at UCSB.
- Fall '09