 = 10*rand(1)-5;
orig = round(1+(sz-1)*rand(2,1));
expt = 0.8+rand(1)
ampl = 1+5*rand(1)
ph = 2*pi*rand(1)
per = 20
twidth = 7
</pre>
<pre class="codeoutput">
dir =

    5.0015


slope =

   -4.3516


expt =

    1.1006


ampl =

    5.2370


ph =

    2.5244


per =

    20


twidth =

     7

</pre><pre class="codeinput">
clf;
showIm(mkRamp(sz,dir,slope,int,orig));
</pre>
<img vspace="5" hspace="5" src="HTML/matlabPyrTools_02.png" alt=""> 
<pre class="codeinput">
showIm(mkImpulse(sz,orig,ampl));
</pre>
<i