-specific component</span>
0043 <span class="comment">% %</span>
0044 <span class="comment">% %  x: data (2D or 3D)</span>
0045 <span class="comment">% %  w: weights</span>
0046 <span class="comment">% %  thresh: threshold to discard PCs (default: 10^-6)</span>
0047 <span class="comment">%</span>
0048 <span class="comment">% if nargin&lt;3||isempty(thresh); thresh=0; end</span>
0049 <span class="comment">% if nargin&lt;2; w=[]; end</span>
0050 <span class="comment">%</span>
0051 <span class="comment">% if ~