1 2 3 4 5 6 7 8 9
// example 1.4 // permutation of a string or character array... clear; clc; x=['a' 'b' 'c' 'd'] printf("\npossible permutation of given string are\n"); y=perms(x); disp(y);