Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Active Tutors
Asked Questions
Answered Questions
example of minimum and maximum valuefor matrices the functions min and max operate column wise by the defaultgtgt mat randint241 20mat
illustration of minimum and maximum valueboth of these functions also return the index of the minimum or maximum value when there is more than one
minimum and maximum valuethe matlab has built-in functions for numerous statistics for illustration min and max to find the minimum or maximum value
statisticsthere are numerous statistical analyses which can be executed on data sets in matlab software the statistical functions are in the data
structure consisting of the fieldsa matlab can also solve the sets of equations in this illustration the solutions for x y amp z are returned as a
example of symbolic expressionwhen there is more than one variable the matlab selects which to solve for in the illustration below the equation ax2
symbolic expressionthe solve function solves an equation and returns the solutions as symbolic expressions the answer can be converted to numbers by
illustration of gauss-jordanheres an illustration of performing such substitutions by using matlabgtgt a 1 3 0 2 1 3 4 2 3a 1 3 02 1 34 2 3gtgt b 1
function numdenthe function numden will return individually the numerator amp denominator of a symbolic expressiongtgt sym13 12ans 56gtgt n d
expanding a functionthe expand function will multiply out terms and factor will do the oppositegtgt expandx2x-1ans x2 x-2gtgt factoransans x
simplification functionsthere are numerous functions which work with expressions and simplify the terms not all the expressions can be simplified but
illustration of symbolic variablewhen on the other hand z is a symbolic variable to start with quotes are not required around the expression and the
basic mathematical operationsall the basic mathematical operations can be executed on symbolic expressions and variables example add raise to a power
symbolic variables and expressionsthe matlab has a type known as sym for the symbolic variables and expressions these work with strings the
gauss-jordanthe gauss-jordan elimination technique begins in similar way which the gauss elimination technique does but then rather than of
gauss eliminationthe gauss elimination technique consists of generating the augmented matrix a b applying eros to augmented matrix to
replacement replace a row by adding it to or subtract from it a multiple of the other row for a given row ri this is written as ri - srj
gauss gauss-jordan eliminationfor 2 times 2 systems of equations there are well-defined easy solution techniques though for the larger systems of
example of plotting from a functionfor illustration the function can be called as shown below gtgt y 1293 y
illustration of graphics propertiesa particular property can also be exhibited for illustration to view the line width gtgt
customizing plotsthere are numerous ways to customize figures in the figure window on clicking the plot tools icon will bring up the property editor
plot functionsfaraway we have plotted to generate two-dimensional plots and bar to generate bar charts we have seen how to clear the figure window by
program of built-in factorial functioncalling this function yields similar result as the built-in factorial functiongtgt fact5ans 120gtgt
example of recursive functionsthis definition is recursive as a factorial is defined in terms of the other factorial there are two parts to any
recursive functionsthe recursion occurs whenever something is defined in terms of itself in the programming a recursive function is a function which