MATLAB Examples

Use functional derivatives in the Symbolic Math Toolbox™ using the example of the wave equation. The wave equation for a string fixed at its ends is solved using functional derivatives. A

Create a 3-D surface by using fsurf .

Plot 3-D parametric lines by using fplot3 .

Plot equations and implicit functions using fimplicit .

Create a 2-D line plot by using fplot . Plot the expression x^3-6x^2+11x-6 .

Provides an overview of the Symbolic Math Toolbox which offers a complete set of tools for computational and analytical mathematics.

Learn calculus and applied mathematics using the Symbolic Math Toolbox™. The example shows introductory functions fplot and diff .

Compute definite integrals using Symbolic Math Toolbox™.

The fplot family accepts symbolic expressions and equations as inputs enabling easy analytical plotting without explicitly generating numerical data.

This demonstration shows how to find extrema of functions using analytical and numerical techniques using the Symbolic Math Toolbox.

Analytically find and evaluate derivatives using Symbolic Math Toolbox™. In the example you will find the 1st and 2nd derivative of f(x) and use these derivatives to find local maxima,

Do rotations and transforms in 3D using Symbolic Math Toolbox™ and matrices.

Perform simple matrix computations using Symbolic Math Toolbox™.

Compute the inverse of a Hilbert matrix using Symbolic Math Toolbox™.

Solve the eigenvalue problem of the Laplace operator on an L-shaped region.

Derive the symbolic stationary distribution of a trivial Markov chain by computing its eigen decomposition.

Extracts closed-form solutions for the coefficients of frequencies in an output signal. The output signal results from passing an input through an analytical nonlinear transfer

Finds the average radiation power of two attracting charges moving in an elliptical orbit (an electric dipole ).

Develops a mathematical model using the Symbolic Math Toolbox to undistort an image and features a local function in the live script.

Uses Symbolic Math Toolbox and the Statistics and Machine Learning Toolbox to explore and derive a parametric analytical expression for the average power generated by a wind turbine.

Obtains the partial differential equation that describes the expected final price of an asset whose price is a stochastic process given by a stochastic differential equation.

Use a Padé approximant in control system theory to model time delays in the response of a first-order system.

Explores basic arbitrage concepts in a single-period, two-state asset portfolio. The portfolio consists of a bond, a long stock, and a long call option on the stock.

Simulates and explores the behavior of a simple pendulum by deriving its equation of motion, and solving the equation analytically for small angles and numerically for any angle.

Use units to perform physics calculations in both SI and Imperial units. Compute with units the terminal velocity of a falling paratrooper by modeling the deacceleration of velocity due to

Explores the physics of the damped harmonic oscillator by

Solve differential algebraic equations (DAEs) of high differential index using Symbolic Math Toolbox™.

Simulates the tsunami wave phenomenon by using the Symbolic Math Toolbox™ to solve differential equations.

Solve polynomial equations and systems of equations, and work with the results using Symbolic Math Toolbox™.

Solve parameterized algebraic equations using the Symbolic Math Toolbox.

Use the Symbolic Math Toolbox™ functions jacobian and matlabFunction to provide analytical derivatives to optimization solvers. Optimization Toolbox™ solvers are usually more

Finds parameterized analytical expressions to model the displacement of a joint for a trivial cantilever truss structure in both static and frequency domains for use in Simscape.

Demonstrates that the Symbolic Math Toolbox helps minimize errors when solving a nonlinear system of equations.

Create a custom equation based components for the Simscape Library using the Symbolic Math Toolbox.

Model a bouncing ball, which is a classical hybrid dynamic system. This model includes both continuous dynamics and discrete transitions. It uses the Symbolic Math Toolbox to help explain

Work with large integers and their decimal representation using the Symbolic Math Toolbox™.

Use variable-precision arithmetic to investigate the decimal digits of pi using Symbolic Math Toolbox™.

Use variable-precision arithmetic to obtain high precision computations using Symbolic Math Toolbox™.

Get precise values for binomial coefficients and find probabilities in coin-tossing experiments using the Symbolic Math Toolbox.

Use some elementary functions on sym objects using the Symbolic Math Toolbox™.

This example was authored by the MathWorks community.

Author: Anna Sibilska-Mroziewicz

INTRODUCTION

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a web site from the following list:

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

Contact your local office