eros(m+1,m+1);
<span class="keyword">for</span> i=1:m,
   <span class="keyword">for</span> j=1:m
      <span class="keyword">if</span> (i~=j) &amp; (1.1*data(i,1).^(1/2)+0.8*data(i,2).^(1/2))/1.9 &gt;= <span class="keyword">...</span>
             (1.1*data(j,1).^(1/2)+0.8*data(j,2).^(1/2))/1.9,
         Pweak(i,j) = 1;
      <span class="keyword">end</span>;
   <span class="keyword">end</span>;
<span class="keyword">end</span>;

<span class="comment">% Find consumer preferences</span>
data = [data; 0.5 0.5