~ubuntu-branches/ubuntu/trusty/scilab/trusty

« back to all changes in this revision

Viewing changes to modules/fileio/help/en_US/isfile.xml

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-02 11:02:49 UTC
  • mfrom: (1.4.6)
  • Revision ID: package-import@ubuntu.com-20120802110249-0v5953emkp25geuz
Tags: 5.4.0-beta-2-1~exp1
* New upstream release
* Remove libscilab-java (remove upstream). Use libscilab2-java instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 *
12
12
 -->
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:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="isfile" xml:lang="en">
14
 
  <info>
15
 
    <pubdate>$LastChangedDate$</pubdate>
16
 
  </info>
17
14
  <refnamediv>
18
15
    <refname>isfile</refname>
19
 
    <refpurpose>checks if argument is a file</refpurpose>
 
16
    <refpurpose>checks whether argument is an existing file</refpurpose>
20
17
  </refnamediv>
21
18
  <refsynopsisdiv>
22
19
    <title>Calling Sequence</title>
23
 
    <synopsis>a = isfile(filenames)</synopsis>
 
20
    <synopsis>x = isfile(filenames)</synopsis>
24
21
  </refsynopsisdiv>
25
22
  <refsection>
26
23
    <title>Arguments</title>
32
29
        </listitem>
33
30
      </varlistentry>
34
31
      <varlistentry>
35
 
        <term>a</term>
 
32
        <term>x</term>
36
33
        <listitem>
37
 
          <para>an matrix of boolean (%t is filenames exists).</para>
 
34
          <para>
 
35
            a matrix of boolean (<constant>%t</constant> if <varname>filenames</varname> are 
 
36
            existing files).
 
37
          </para>
38
38
        </listitem>
39
39
      </varlistentry>
40
40
    </variablelist>
41
41
  </refsection>
42
42
  <refsection>
43
43
    <title>Description</title>
44
 
    <para>x = isfile(filenames) checks if filenames is existing file or not. (a
45
 
      directory is not a file. see isdir.)
 
44
    <para>
 
45
      <code>x = isfile(filenames)</code> checks whether <varname>filenames</varname> is an existing file or not (a
 
46
      directory is not a file). See also <link linkend="isdir">isdir</link>.
46
47
    </para>
47
48
  </refsection>
48
49
  <refsection>
49
50
    <title>Examples</title>
50
 
    <programlisting role="example">cd SCI
51
 
      filenames = ls()
52
 
      isfile(filenames)
 
51
    <programlisting role="example">
 
52
      filenames = ls(SCI)
53
53
      
54
 
      isfile(filenames)
 
54
      x = isfile(filenames)
55
55
      
56
56
      isfile(SCI + '/etc')
57
57
      isdir(SCI + '/etc')