Example of minimum and maximum value, MATLAB in Mathematics

Example of Minimum and Maximum Value

For matrices, the functions min and max operate column wise by the default:

>> mat = randint(2,4,[1 20])

mat =

   9   10   17    5

  19    9   11   14

>> min(mat)

ans=

9 9 11 5

>> [minval, minind] = min(mat)

minval =

9 9 11 5

minind =

1 2 2 1

Posted Date: 10/22/2012 6:55:03 AM | Location : United States







Related Discussions:- Example of minimum and maximum value, Assignment Help, Ask Question on Example of minimum and maximum value, Get Answer, Expert's Help, Example of minimum and maximum value Discussions

Write discussion on Example of minimum and maximum value
Your posts are moderated
Related Questions
strvcat function - concatenation: The function strvcat will concatenate it vertically, that means that it will generate a column vector of the strings.   >> strvcat(fir

Write a MATLAB function [d1, u1, l1, c1, r1] = NaiveGaussArrow(d, u, l, c, r) that takes as input the 5 vectors de ned above representing A. This function performs Naive Gauss redu

Referring to and Modifying the Matrix Elements: To refer to matrix elements, the row and then the column indices are given in parentheses (always the row index initially and t

Illustration of a recursive function: illustration is of a recursive function which does not return anything, but simply prints. The below function prtwords receives a sentenc

Labels and Prompts: The script loads all the numbers from file into a row vector. It then splits the vector; it stores the initial element that is the experiment number in a v

Complex numbers: A complex number is commonly written in the form z = a + bi here a is known as the real part of the number z, b be the imaginary part of z, and i is √-1

Applications of Customized Strings: Labels, Prompts, Arguments to Functions: The one of very useful application of this is to involve numbers in strings that are used to plot

Example of Recursive functions: This definition is recursive as a factorial is defined in terms of the other factorial. There are two parts to any recursive definition: the co

Illustration of Spreadsheet Files: This reads the numbers in a double vector variable nums and the text in a cell array txt (the xlsread function forever returns the numbers f

Minimum and Maximum Value The MATLAB has built-in functions for numerous statistics. For illustration, min and max to find the minimum or maximum value in a data set. >> x