he&nbsp;vectors&nbsp;and&nbsp;the&nbsp;
</span><br>
<span class=comment>%&nbsp;labels&nbsp;are&nbsp;preserved
</span><br>
<span class=keyword>if</span>&nbsp;isstruct(X),&nbsp;tmp&nbsp;=&nbsp;X.y;&nbsp;X&nbsp;=&nbsp;X.X;&nbsp;<span class=keyword>else</span>&nbsp;tmp&nbsp;=&nbsp;[];&nbsp;<span class=keyword>end</span>
<br>

<br>
<span class=comment>%&nbsp;dimension
</span><br>
[dim,num_data]=size(X);
<br>

<br>
new_dim=dim*(dim+3)/2;
<br>

<br>
Y=zeros(new_dim,num_data);
<br>

<br>
Y(1:dim,:)=X;
<br>

<br>
in