14-440-127 Recitation 12 Presentation

# 14-440-127 Recitation 12 Presentation - 14:440:127...

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

14:440:127 Introduction to Computers for Engineers Recitation 12 Lecturer: Blase E. Ur Recitation Instructor: Tianming Li Recitation Instructor: Ke Xu Recitation Instructor: Brian Viezbicke Recitation Instructor: Mingliang Wang

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

View Full Document
Rutgers University SOE 14:440:127 Recitation 12 Symbolic Math Functions >> syms x y %% make x and y symbols rather than variables >> collect(x^2 - 3*x^2 + 5 - 2*x + 32*x) ans = -2*x^2+5+30*x >> factor(x^3-1) ans = (x-1)*(x^2+x+1) >> syms x y >> solve('x^2 + 5*x -3 = 11') %% need single quotes because of ‘=‘ ans = 2 -7
Rutgers University SOE 14:440:127 Recitation 12 Symbolic Calculus >> syms x y >> limit(1/x,inf) ans = 0 >> diff(2*x^2 + 5*x - 382) ans = 4*x+5 >> int('x^2') int('x^2',5,10) ans = ans = 1/3*x^3 875/3

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

View Full Document
Rutgers University SOE 14:440:127 Recitation 12 Recursion- Stars * ** *** function y = stars(x) if(x==1) y = '*'; else y = [ stars(x-1) '*' ]; end fprintf('%s\n',y);
Rutgers University SOE 14:440:127 Recitation 12 Sound Processing- More Advanced >> [x f] = wavread('sim.wav'); >> p = audioplayer(x,f); >> play(p) >> stop(p) >> [b a] = butter(10,1000/(f/2),'high'); % frequencies >= 1 khz pass >> pl = filtfilt(b,a,x); >> p2 = audioplayer(pl,44100); >> play(p2) >> stop(p2)

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

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

### Page1 / 17

14-440-127 Recitation 12 Presentation - 14:440:127...

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

View Full Document
Ask a homework question - tutors are online