Stream Line Plots of Vector Data

May 2nd, 2010 No Comments   Posted in Examples

Wind Mapping Data

The MATLAB vector data set called wind represents air currents over North America. This example uses a combination of techniques: Read More

Reading, Writing, and Querying Graphics Image Files

April 29th, 2010 No Comments   Posted in Documents

Working with Image Formats

In its native form, a graphics file format image is not stored as a MATLAB matrix, or even necessarily as a matrix. Most graphics files begin with a header containing format-specific information tags, and continue with bitmap data that can be read as a continuous stream. For this reason, you cannot use the standard MATLAB I/O commands load and save to read and write a graphics file format image. Read More

Constructing Sparse Matrices

April 14th, 2010 No Comments   Posted in Documents

Creating Sparse Matrices

  • Converting Full to Sparse
  • Creating Sparse Matrices Directly
  • Creating Sparse Matrices from Their Diagonal Elements

MATLAB software never creates sparse matrices automatically. Instead, you must determine if a matrix contains a large enough percentage of zeros to benefit from sparse techniques. Read More

Analysis of Functions, Interpolation, Curve Fitting, Integrals and Differential Equations 2

March 23rd, 2010 No Comments   Posted in Documents

Localize minima and maxima of functions

Let us try to find the local minima and maxima for the function func(x). The interval of interest is [-6 0]. The algorithms are iterative. There are 2 methods to use. The first one decides x in a given interval, and the second one looks for x around an initial guess. To decide the maxima we are looking for an x that minimizes the negative function: -func(x). Read More

Analysis of Functions, Interpolation, Curve Fitting, Integrals and Differential Equations

March 23rd, 2010 No Comments   Posted in Documents

In this tutorial we will deal with analysis of functions, interpolation, curve fitting, integrals and differential equations. Firstly, we will need to use polynomials and therefore we have to be familiar with the representation of these. A general polynomial looks like: p(x)=anxn + an-1xn-1 +……….+ a1x + a0 and is represented by a vector in Matlab:
p=[ an an-1 ....... a1 a0 ] Read More

arrayfun

December 5th, 2009 No Comments   Posted in Functions

arrayfun – Apply function to each element of array Read More