<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!-- When this file is modified please also modify -->
<!-- mtlb_false.xml mtlb_true.xml mtlb_ones.xml mtlb_eye.xml mtlb_rand.xml mtlb_randn.xml -->
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
<MAN>
  <LANGUAGE>eng</LANGUAGE>
  <TITLE>mtlb_zeros</TITLE>
  <TYPE>M2SCI function</TYPE>
  <DATE>April 2004</DATE>

  <SHORT_DESCRIPTION name="mtlb_zeros">Matlab zeros emulation function</SHORT_DESCRIPTION>

  <DESCRIPTION>

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

    <DESCRIPTION_INDENT>
    <DESCRIPTION_ITEM>
    <ITEMIZE>
      <ITEM>
        <SP>
        With a scalar input: Matlab <VERB>zeros</VERB> returns a n x n matrix while Scilab returns a 0.
        </SP>
      </ITEM>
    </ITEMIZE>
    </DESCRIPTION_ITEM>
    </DESCRIPTION_INDENT>

    <P>
    The function <VERB>mtlb_zeros(A)</VERB> is used by
    <VERB>mfile2sci</VERB> to replace <VERB>zeros(A)</VERB> when it was not
    possible to know what was the input 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_zeros</VERB> calls:
    </P>

    <DESCRIPTION_INDENT>
    <DESCRIPTION_ITEM>
    <ITEMIZE>
      <ITEM>
        <SP>
        If <VERB>A</VERB> is a scalar
        <VERB>mtlb_zeros(A)</VERB> may be replaced by <VERB>zeros(A,A)</VERB>
        </SP>
      </ITEM>

      <ITEM>
        <SP>
        If <VERB>A</VERB> is not a scalar
        <VERB>mtlb_zeros(A)</VERB> may be replaced by <VERB>zeros(A)</VERB>
        </SP>
      </ITEM>
    </ITEMIZE>
    </DESCRIPTION_ITEM>
    </DESCRIPTION_INDENT>

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

  </DESCRIPTION>

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