[sorted_evalue, index] = sort( evalue ); sorted_evalue = flipud( sorted_evalue ); index = flipud( index ); evector( :, 1:nof ) = evector ( :, index ); smallest_ev1alue = (1/100) * sorted_evalue(0); for i = 1:nof if (sorted_evalue(i) < smallest_evalue) break; end end index = i+1; evector = evector( :, 1:index );
MATLAB: Attempted to access sorted_evalue(1); index out of bounds because numel(sorted_evalue)=0. smallest_ev1p = 0.01 * sorted_evalue(1); % to obtain the effective eigen values
MATLAB
Best Answer