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

Controlling Command Window Input and Output

March 19th, 2010 No Comments   Posted in Documents

The format Function

The format function controls the numeric format of the values displayed. The function affects only how numbers are displayed, not how MATLAB software computes or saves them. Here are the different formats, together with the resulting output produced from a vector x with components of different magnitudes. Read More

idivide

December 5th, 2009 No Comments   Posted in Functions

idivide – Integer division with rounding option
Syntax Read More

floor

December 5th, 2009 No Comments   Posted in Functions

floor – Round toward negative infinity
Syntax Read More

ver

August 13th, 2009 No Comments   Posted in Functions

ver MATLAB, SIMULINK, and TOOLBOX version information.
ver displays the current MATLAB and toolbox version numbers.
ver(TOOLBOX_DIR) displays the current version information for the
toolbox specified by the string TOOLBOX_DIR. Read More

quit

August 12th, 2009 No Comments   Posted in Functions

quit Quit MATLAB session.
quit terminates MATLAB after running the script FINISH.M,
if it exists. The workspace information will not be saved
unless FINISH.M calls SAVE. If an error occurs while
executing FINISH.M, quitting is cancelled. Read More