<?xml version="1.0" encoding="ISO-8859-1"?><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="plq_plot"><info><pubdate>16-Jul-2008</pubdate></info><refnamediv><refname>plq_plot</refname><refpurpose>Piecewise linear quadratic (plq), plot function</refpurpose></refnamediv>
  
   
  
   
  
   
  
   
  
   

  
   <refsynopsisdiv><title>Calling Sequence</title><synopsis>plq_plot(plqf1, plqf2, x1, x5)</synopsis></refsynopsisdiv>

  
   <refsection><title>Parameters</title>
    
      <variablelist>
      
         <varlistentry>
        
            <term>plqf1</term>
        
            <listitem>
          
               <para>matrix.  A plq function to plot.
          </para>
        
            </listitem>
      
         </varlistentry>
      
         <varlistentry>
        
            <term>plqf2</term>
        
            <listitem>
          
               <para>matrix, optional.  A secondary plq function to plot.
          </para>n
        </listitem>
      
         </varlistentry>
      
         <varlistentry>
        
            <term>x1</term>
        
            <listitem>
          
               <para>number, optional.  The lower x bound of the grid on which the functions are plotted.
          </para>
        
            </listitem>
      
         </varlistentry>
      
         <varlistentry>
        
            <term>x5</term>
        
            <listitem>
          
               <para>number, optional.  The upper x bound of the grid on which the functions are plotted.
          </para>
        
            </listitem>
      
         </varlistentry>
    
      </variablelist>
  
   </refsection>

  
   <refsection><title>Description</title>
      
         <para>
        Initializes and creates a plot of one or two PLQ functions computed over the interval [x1,x5].  If x1 or x5 are not provided, or are -%inf and %inf respectively, then they default to -5 and 5.
      </para>
    
   </refsection>

  
   <refsection><title>Examples</title><programlisting role="example"><![CDATA[
// Plotting two functions with a specific grid:
plqf1 = [-1,0,-1,-1;0,0,1,1;1,0,-1,1;%inf,0,1,-1];  // The function abs(abs(x) - 1)
plqf2 = [-1,-3,-12,-9;1,4,0,-4;%inf,-3,12,-9];      // An "m"
plq_plot(plqf1, plqf2, -4, 4);

// Plotting a single, noncontinuous function:
plqf = [0,-3,-18,-29;3,0,-2,6;%inf,0,40,-170];
plq_plot(plqf);
  ]]></programlisting></refsection>

  
   <refsection><title>See Also</title><simplelist type="inline">
    
      <member>
         <link linkend="plq_function">plq_function</link>
      </member>
  
   </simplelist></refsection>

  
   <refsection><title>Authors</title><para>
    
      <literal>Bryan Gardiner</literal>, University of British Columbia, BC, Canada
  </para></refsection>

</refentry>