function [ output_args ] = perm( list , s ,e )
%UNTITLED4 Summary of this function goes here
% Detailed explanation goes here
if( s == e )
disp( num2str( list ) );
else
for( i = s : e )
t = list( s ) ; list( s ) = list( i ) ; list( i ) = t ;
perm( list , s +1 , e ) ;
t = list( s ) ; list( s ) = list( i ) ; list( i ) = t ;
end;
end
这代码设计的很牛逼!!!!!!!!!!!!!
你好好感悟吧???????????