nction</span> data = getDataForCopy(obj)
            data = cell(1, 2);

            data{1} = obj.getStack();
            data{2} = obj.getCData();
        <span class="keyword">end</span>
</pre><h2>setCopyData<a name="6"></a></h2><p>See <a href="Layer.html">Layer documentation</a>.</p><pre class="codeinput">        <span class="keyword">function</span> setCopyData(obj, data)
            t = data{1};

            <span class="keyword">for</span> i = 1 : length(t)
                t
                x = t(i, 