ee231_HW8

# ee231_HW8 - EE 231_B1 Numerical Analysis for Electrical and...

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

EE 231_B1 Numerical Analysis for Electrical and Computer Engineers Course Instructor: Dr. Sergiy Vorobyov Damir Iraliyev, 1246540 Assignment 8 13.2 Code used: >> y=[8.8 9.5 9.8 9.4 10.0 9.4 10.1 9.2 11.3 9.4 10.0 10.4 7.9 10.4 9.8 9.8 9.5 8.9 8.8 10.6 10.1 9.5 9.6 10.2 8.9]; >> hist(y) >> grid >> xlabel('range, from 7.5 to 11.5 with 0.5 intervals'); >> ylabel('frequency'); 1 | P a g e

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

View Full Document
13.7 = y α4 * x * eβ4 * x We take natural logarithm on both sides: = lny ln + + ( α4 lnx ln eβ4 * ) x => lny - lnx = ln + α4 β4 * x Thus, we plot: lny - lnx = ln + α4 β4 * x Matlab code used >> x=[0.1 0.2 0.4 0.6 0.9 1.3 1.5 1.7 1.8]'; >> y=[0.75 1.25 1.45 1.25 0.85 0.55 0.35 0.28 0.18]'; >> plot(x,y); >> q=log(y); >> plot(x,q) >> t=log(x); >> plot(y,t) >> z=q-t; >> plot(x,z); >> grid >> title('ln(y)-ln(x) vs. x'); >> xlabel('x'); >> ylabel('ln(y)-ln(x)'); We approximate ( )=[ - ( )]-[ - ( )] - = . -- . . - =- β4 slope lny1 ln x1 lny2 ln x2 x1 x2 1 78 0 260 22 1 . 2 6154 2 | P a g e
We approximate : = . -- . . intercept a4 e1 981 2 61540 11686 = . 9 8418 3 | P a g e

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

View Full Document
13.10
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 12/20/2010 for the course E E 231 taught by Professor Vorobyov during the Spring '10 term at University of Alberta.

### Page1 / 5

ee231_HW8 - EE 231_B1 Numerical Analysis for Electrical and...

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

View Full Document
Ask a homework question - tutors are online