class="codeinput">C = opOnes(2,2);
B(2:3,1:2) = C;
double(B)
</pre><pre class="codeoutput">
ans =

     0     2     0     0     0
     1     1     3     0     0
     1     1     0     4     0

</pre><h2>Creating More Complex Operators<a name="10"></a></h2><p>Spot operators can be combined into more complex operators using methods such as blkdiag and kron. Whenever a matrix is passed to one of these methods, it is automatically converted to a Spot operator. <a href="matlab:doc('opSpot/blkdiag')">blkdiag</a> 