**Only compute the smallest eigenvector.** This saves a lot of time and memory. Since the smallest eigenvector gives the local orientation it is usually the only one we care about.
```matlab
addpathstructuretensor
% Make simple volume with one rod aligned with the Y-axis.
vol=zeros(128,128,128);
vol(60:70,:,60:70)=1;
% Set structure tensor parameters.
sigma=2;
rho=4;
% Compute structure tensor eigenvalues and eigenvectors.
% By default, the function uses the GPU if one is available.
% See also help StructureTensorEig3 for more info.
[E,X,Y,Z]=StructureTensorEig3(vol,sigma,rho,...
'BlockSize',64,... % Use 64x64x64 blocks. Can also give block as [W,H,D].
'Verbose',true,... % Print a loadbar to show progress.
'NumEigVecs',1);% Only return 1 eigenvector (the smallest).
% Show smallest eigenvector in the middle of the volume.