13
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" version="5.0-subset Scilab" xml:lang="en" xml:id="mtlb_strcmp">
15
<refname>mtlb_strcmp</refname>
16
<refpurpose>Matlab strcmp emulation function</refpurpose>
19
<title>Description</title>
21
There is no Scilab function equivalent for Matlab <literal>strcmp</literal>, there is equivalent instructions.
24
The function <literal>mtlb_strcmp(A,B)</literal> is used by
25
<literal>mfile2sci</literal> to replace <literal>strcmp(A,B)</literal> when it was not
26
possible to know what were the inputs while porting Matlab code to Scilab. This function will
27
determine the correct semantic at run time. If you want to have a
28
more efficient code it is possible to replace <literal>mtlb_strcmp</literal> calls:
33
If <literal>A</literal> and <literal>B</literal> are character strings
34
<literal>mtlb_strcmp(A,B)</literal> may be replaced by <literal>A==B</literal>
39
If <literal>A</literal> and/or <literal>B</literal> is not a character string
40
<literal>mtlb_strcmp(A,B)</literal> may be replaced by <literal>0</literal>
45
Caution: <literal>mtlb_strcmp</literal> has not to be used for hand coded functions.
15
<refname>mtlb_strcmp</refname>
16
<refpurpose>Matlab strcmp emulation function</refpurpose>
19
<title>Description</title>
21
There is no Scilab function equivalent for Matlab <literal>strcmp</literal>, there is equivalent instructions.
24
The function <literal>mtlb_strcmp(A,B)</literal> is used by
25
<literal>mfile2sci</literal> to replace <literal>strcmp(A,B)</literal> when it was not
26
possible to know what were the inputs while porting Matlab code to Scilab. This function will
27
determine the correct semantic at run time. If you want to have a
28
more efficient code it is possible to replace <literal>mtlb_strcmp</literal> calls:
33
If <literal>A</literal> and <literal>B</literal> are character strings
34
<literal>mtlb_strcmp(A,B)</literal> may be replaced by <literal>A==B</literal>
39
If <literal>A</literal> and/or <literal>B</literal> is not a character string
40
<literal>mtlb_strcmp(A,B)</literal> may be replaced by <literal>0</literal>
45
Caution: <literal>mtlb_strcmp</literal> has not to be used for hand coded functions.