94674159e208b415e1988db19db093c92a90b395
[scilab.git] / scilab / modules / m2sci / help / en_US / m2sci_equivalents / i / ismember.xml
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) 2009 - Universit√© du Maine - Samuel Gougeon
5  *
6  * This file must be used under the terms of the CeCILL.
7  * This source file is licensed as described in the file COPYING, which
8  * you should have received as part of this distribution.  The terms
9  * are also available at
10  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
11  *
12  -->
13 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="m2sci_ismember">
14     <refnamediv>
15         <refname>ismember (Matlab function)</refname>
16         <refpurpose>Data sets membership comparison</refpurpose>
17     </refnamediv>
18     <refsection>
19         <title>Matlab/Scilab equivalent</title>
20         <informaltable border="1" width="100%">
21             <tr>
22                 <td align="center">
23                     <emphasis role="bold">Matlab</emphasis>
24                 </td>
25                 <td align="center">
26                     <emphasis role="bold">Scilab</emphasis>
27                 </td>
28             </tr>
29             <tr>
30                 <td>
31                     <programlisting role="example"><![CDATA[
32 [., loc] = ismember(A, B)
33 ]]></programlisting>
34                 </td>
35                 <td>
36                     <programlisting role="example"><![CDATA[
37 [., loc] = members(A, B, %f)
38 ]]></programlisting>
39                 </td>
40             </tr>
41         </informaltable>
42     </refsection>
43     <refsection>
44         <title>Description</title>
45         <para>
46             The second output argument returned by <emphasis role="bold">members(A, B, %f)</emphasis> in Scilab is equivalent to the second output argument of <emphasis role="bold">ismember(A, B)</emphasis> in Matlab.
47         </para>
48     </refsection>
49 </refentry>