14-440-127 Recitation 12 Presentation

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

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

View Full Document Right Arrow Icon
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
Background image of page 1

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

View Full DocumentRight Arrow Icon
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
Background image of page 2
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
Background image of page 3

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

View Full DocumentRight Arrow Icon
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);
Background image of page 4
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)
Background image of page 5

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

View Full DocumentRight Arrow Icon
Image of page 6
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 Right Arrow Icon
Ask a homework question - tutors are online