Function issorted - set operations, MATLAB in Engineering

Function issorted - set operations:

The function issorted will return 1 for logical true when the argument is sorted in ascending order (minimum to maximum), or 0 for false when not.

>> v3 = [1:5 3:6]

v3 =

1 2 3 4 5 3 4 5 6

>> issorted(v3)

ans =

   0

>> issorted(v1)

ans =

   1

>> vec = 4:-1:1

vec =

4 3 2 1

>> issorted(vec)

ans =

   0

Posted Date: 10/22/2012 7:35:39 AM | Location : United States







Related Discussions:- Function issorted - set operations, Assignment Help, Ask Question on Function issorted - set operations, Get Answer, Expert's Help, Function issorted - set operations Discussions

Write discussion on Function issorted - set operations
Your posts are moderated
Related Questions
printrectarea function: function call: printrectarea(length, width) function header: function printrectarea(len, wid)   In the function call, there are two argume

. Generate the following signal, x(n)=1+cos((25*pi*n)/100),0 Compute the DTFT of x[n] for w=0:0.01:2*pi Plot the Real part, imaginary part, the amplitude and phas

Splits a string : The strtok function splits a string into pieces; it can be called in many ways. The function receives one string as an input argument. It appears for the fir

Calling of Function polyval: The curve does not appear very smooth on this plot, but that is as there are only five points in the x vector. To estimate the temperature

Matrix Multiplication: The Matrix multiplication does not mean multiplying term by term; and it is not an array operation. The Matrix multiplication has a very particular mean

Illustration of symbolic variable: When, on the other hand, z is a symbolic variable to start with, quotes are not required around the expression, and the words are automatica

True color matrice: The true color matrices are the other way to represent images. The true color matrices are 3-dimensional matrices. The first two coordinates are the coordi

Set Operations: The MATLAB has numerous built-in functions which perform set operations on vectors. These involve intersect, union, setdiff, unique, and setxor. All these func

Example of Interpolation and extrapolation: The MATLAB has a function to do this, known as polyfit. The function polyfit finds the coefficients of the polynomial of the partic

Cross Product: The cross or outer product a × b of two vectors a and b is defined only whenever both a and b are the vectors in three-dimensional space, that means that they b