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
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

Use of string variables: The Characters involve letters of the alphabet, punctuation marks, digits, white space, and control characters. The Control characters are characters

Illustration of logical built-in functions: The function find returns the indices of a vector which meet certain criteria. For illustration, to find all the elements in a vect

Standard Deviation The standard deviation is the square root of variance: The built-in function in a MATLAB for the standard deviation is known as std; the standard dev

Illustration of Writing variables to a file: For illustration, in the below session in the Command Window, 3 variables are generated; these are then exhibited using who. Then,

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

Illustration of Standard Deviation The less spread out the numbers are, therefore smaller the standard deviation will be, as it is a way of determining the spread of the data.

Common form of the switch statement: The common form of the switch statement is as shown below:   switch switch_expression   case caseexp1    action1   case cas

Example of Logical built-in functions: For equivalent to all the function, we should make sure that the entire elements in the vector are logically true. The one way of doing

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