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
Illustration of Variance For illustration, for the vector [4, 6, 1, 5], there are n = 4 values therefore n - 1 is 3. The mean of this data set is also 4. The variance will be

Function xlsread - file function: The function xlsread will read from the spreadsheet file. For illustration, to read from file just generated: >> ssnums = xlsread('ranexc

Illustration of Labels and prompts: The program below prompts the user for endpoints (x1, y1) and (x2, y2) of a line segment, and computes the midpoint of the line segment, th

How do I write a product series running from i to n of x''s using a for loop?

Blanks function: The blanks function will generate a string consisting of n blank characters-that are kind of hard to see here! Though, in a MATLAB if the mouse is moved to hi

Find Minimum and Maximum for each row To find the maximum (or minimum) for each row, the dimension of 2 (that is how a MATLAB refers to rows) can be identified as the third arg

Illustration of Advanced file input and output: For illustration, to refer to the third number in the first element of the cell array: >> subjdata{1}(3) ans =

Polar Form: Any complex number z = a + bi can be thought of as a point (a,b) or vector in the complex plane in which the horizontal axis is the real part of z, and the vertica

Histogram: The histogram is a particular type of bar chart which shows the frequency of occurrence of the values within a vector. The Histograms use what are known as bins to

Error-checking for integers: illustrations of running this script as shown below: >> readoneint Enter an integer: 9.5 Invalid! Enter an integer: 3.6 Invalid