ily added or subtracted. For example, make an operator B consisting of all twos and add it to A:</p><pre class="codeinput">B = 2*opOnes(3,2);
C = A + B;
double(C)
</pre><pre class="codeoutput">
ans =

     3     3
     3     3
     3     3

</pre><p>If you add a matrix and an operator, Spot will first automatically convert the matrix into a Spot operator using opMatrix. We can discover other information about the operator C by using the methods <a href="matlab:doc('opSpot/size')">size</a>, <a href="matlab:d