Using Symbolic Toolbox in MATLAB RR Method

Using Symbolic Toolbox in MATLAB RR Method - Using Symbolic...

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

View Full Document Right Arrow Icon
Using Symbolic Toolbox in MATLAB The Symbolic Toolbox in MATLAB is a very efficient toolbox for computing analytic expressions while performing differentiation, integration, evaluating the roots of nonlinear equations, solutions of linear set of equations, linear algebra etc. In order to use the symbolic toolbox you need to specify MATLAB which variables are to be used for symbolic computations. It can be achieved by syms command. You can use >> help syms for more information and syntax. In the following examples I will use x, y, w, wn, t, z, and f0 as symbolic quantities. Clear the work space clear all Define the symbolic variables syms x y w wn t z f0 Finding the derivative of function exp(t)*cos(10*t) with respect to t by using Symbolic Toolbox f= exp(t)*cos(10*t) f = exp(t)*cos(10*t) The command diff(f)computes the derivative of d1 with respect to t d1=diff(f,t) d1 = exp(t)*cos(10*t)-10*exp(t)*sin(10*t) The command diff(diff(t)) evaluates the second derivative of d1 with respect to t
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 11/04/2011 for the course MME 512 at Miami University.

Page1 / 5

Using Symbolic Toolbox in MATLAB RR Method - Using Symbolic...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online