<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
<MAN>
  <LANGUAGE>eng</LANGUAGE>
  <TITLE>mtlb_strrep</TITLE>
  <TYPE>M2SCI function</TYPE>
  <DATE>April 2004</DATE>

  <SHORT_DESCRIPTION name="mtlb_strrep">Matlab strrep emulation function</SHORT_DESCRIPTION>

  <DESCRIPTION>

    <P>Matlab <VERB>strrep</VERB> and Scilab <VERB>strsubst</VERB> behave differently in some particular cases:</P>

    <DESCRIPTION_INDENT>
    <DESCRIPTION_ITEM>
    <ITEMIZE>
      <ITEM>
        <SP>
        With inputs which not character strings: Matlab <VERB>strrep</VERB> can be used
	with not character strings inputs but not Scilab <VERB>strsubst</VERB>.
        </SP>
      </ITEM>
    </ITEMIZE>
    </DESCRIPTION_ITEM>
    </DESCRIPTION_INDENT>

    <P>
    The function <VERB>mtlb_strrep(A,B,C)</VERB> is used by
    <VERB>mfile2sci</VERB> to replace <VERB>strrep(A,B,C)</VERB> when it was not
    possible to know what were the inputs while porting Matlab code to Scilab. This function will
    determine the correct semantic at run time. If you want to have a
    more efficient code it is possible to replace <VERB>mtlb_strrep</VERB> calls:
    </P>

    <DESCRIPTION_INDENT>
    <DESCRIPTION_ITEM>
    <ITEMIZE>
      <ITEM>
        <SP>
        If <VERB>A</VERB>, <VERB>B</VERB> and <VERB>C</VERB> are character strings
        <VERB>mtlb_strrep(A,B,C)</VERB> may be replaced by <VERB>strsubst(A,B,C)</VERB>
        </SP>
      </ITEM>
    </ITEMIZE>
    </DESCRIPTION_ITEM>
    </DESCRIPTION_INDENT>

    <P>Caution: <VERB>mtlb_strrep</VERB> has not to be used for hand coded functions.</P>

  </DESCRIPTION>

  <AUTHORS>
    <AUTHORS_ITEM>V.C.</AUTHORS_ITEM>
  </AUTHORS>
</MAN>
