12.07.2015 Views

Matlab/Octave Tutorial

Matlab/Octave Tutorial

Matlab/Octave Tutorial

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Review Questions•What command do you use to tell MATLAB that r, sand t are to be symbolic?•>> syms r s t•What command do you use to differentiate sin 2 t ?•>> diff(sin(t)^2,t)•What command do you use to integrate e s from 0 to r?•>> int(exp(s),s,0,r)•What command do you use to evaluate the aboveintegral for r = π/2?•>> subs(int(exp(s),s,0,r),r,pi/2)143

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!