Cellne: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Jeremy
(Importing text file)
 
imported>Jeremy
(Importing text file)
Line 1: Line 1:
===Purpose===
===Purpose===
Element by element comparison of two cells for inequality.
Element by element comparison of two cells for inequality.
===Synopsis===
===Synopsis===
:out = cellne(c1,c2)
:out = cellne(c1,c2)
===Description===
===Description===
CELLNE compares the two cell inputs, c1 and c2, for inequality. If the cell arrays are the same size, the corresponding cell elements are compared and a similarly sized array of logical (boolean) values, out, is returned. The array out contains a one if the two cell elements were not equal (different variable type or contents) and a zero if the two cell elements were equal.
CELLNE compares the two cell inputs, c1 and c2, for inequality. If the cell arrays are the same size, the corresponding cell elements are compared and a similarly sized array of logical (boolean) values, out, is returned. The array out contains a one if the two cell elements were not equal (different variable type or contents) and a zero if the two cell elements were equal.
If the cell sizes do not match, the function returns a single logical value of 1.
If the cell sizes do not match, the function returns a single logical value of 1.
===See Also===
===See Also===
[[comparevars]]
[[comparevars]]

Revision as of 15:24, 3 September 2008

Purpose

Element by element comparison of two cells for inequality.

Synopsis

out = cellne(c1,c2)

Description

CELLNE compares the two cell inputs, c1 and c2, for inequality. If the cell arrays are the same size, the corresponding cell elements are compared and a similarly sized array of logical (boolean) values, out, is returned. The array out contains a one if the two cell elements were not equal (different variable type or contents) and a zero if the two cell elements were equal.

If the cell sizes do not match, the function returns a single logical value of 1.

See Also

comparevars