 class="p">.</span><span class="n">res_gen_cell</span><span class="p">{</span><span class="nb">i</span><span class="p">};</span>
    <span class="k">if</span> <span class="o">~</span><span class="nb">isempty</span><span class="p">(</span><span class="n">rg</span><span class="p">)</span>
        <span class="n">rg</span><span class="p">.</span><span class="n">reset_state</span><span class="p">(</span><span class="n">RG_results</span><span class="p">.</span><span class="n">values</span><span class="p">);</spa