Cody

Solution 1568187

Submitted on 24 Jun 2018 by bainhome
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
tic m='ABCDEFGHIJKLMNOPQRSTUVWXYZ'; vexp='ZYXWVUTSRQPONMLKJIHGFEDCBA'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

2   Pass
m='X'; vexp='IMPOSSIBLE'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

3   Pass
m='QQ'; vexp='QABCDEFGHIJKLMNOPRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

4   Pass
m='VLCIFDXB'; vexp='BXDFICLVAEGHJKMNOPQRSTUWYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

5   Pass
m='Z'; vexp='IMPOSSIBLE'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

6   Pass
m='IKFBJUXSECAHNYLRVWDQPTZOMG'; vexp='GMOZTPQDWVRLYNHACESXUJBFKI'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

7   Pass
m='XQOHEJIUZVFRSMLGYNWDBATP'; vexp='PTABDWNYGLMSRFVZUIJEHOQXCK'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

8   Pass
m='JO'; vexp='OJABCDEFGHIKLMNPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

9   Pass
m='UJ'; vexp='JUABCDEFGHIKLMNOPQRSTVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

10   Pass
m='JQ'; vexp='QJABCDEFGHIKLMNOPRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

11   Pass
m='PJ'; vexp='JPABCDEFGHIKLMNOQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

12   Pass
m='JK'; vexp='KJABCDEFGHILMNOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

13   Pass
m='AJILRWDVYFQNUPOSKXGTCME'; vexp='EMCTGXKSOPUNQFYVDWRLIJABHZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

14   Pass
m='JV'; vexp='VJABCDEFGHIKLMNOPQRSTUWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

15   Pass
m='UOFVH'; vexp='HVFOUABCDEGIJKLMNPQRSTWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

16   Pass
m='ZBITRKUX'; vexp='XUKRTIBZACDEFGHJLMNOPQSVWY'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

17   Pass
m='RXHYDMIVCWTQN'; vexp='NQTWCVIMDYHXRABEFGJKLOPSUZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

18   Pass
m='VONM'; vexp='MNOVABCDEFGHIJKLPQRSTUWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

19   Pass
m='LPNXTMRA'; vexp='ARMTXNPLBCDEFGHIJKOQSUVWYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

20   Pass
m='PKBAYN'; vexp='NYABKPCDEFGHIJLMOQRSTUVWXZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

21   Pass
m='JBHWXAPIKGZLYDSVNEQRFCU'; vexp='UCFRQENVSDYLZGKIPAXWHBJMOT'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

22   Pass
m='JD'; vexp='DJABCEFGHIKLMNOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

23   Pass
m='JL'; vexp='LJABCDEFGHIKMNOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

24   Pass
m='CENHVFYD'; vexp='DYFVHNECABGIJKLMOPQRSTUWXZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

25   Pass
m='CIJTQSGVWKEXLO'; vexp='OLXEKWVGSQTJICABDFHMNPRUYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

26   Pass
m='AJ'; vexp='JABCDEFGHIKLMNOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

27   Pass
m='RJ'; vexp='JRABCDEFGHIKLMNOPQSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

28   Pass
m='QJ'; vexp='JQABCDEFGHIKLMNOPRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

29   Pass
m='LJ'; vexp='JLABCDEFGHIKMNOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

30   Pass
m='RUTGILBYCWO'; vexp='OWCYBLIGTURADEFHJKMNPQSVXZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

31   Pass
m='WJ'; vexp='JWABCDEFGHIKLMNOPQRSTUVXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

32   Pass
m='JI'; vexp='IJABCDEFGHKLMNOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

33   Pass
m='RPFLXJAUNZDYBCQHKOGEW'; vexp='WEGOKHQCBYDZNUAJXLFPRIMSTV'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

34   Pass
m='JC'; vexp='CJABDEFGHIKLMNOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

35   Pass
m='ZZ'; vexp='ZABCDEFGHIJKLMNOPQRSTUVWXY'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

36   Pass
m='NJ'; vexp='JNABCDEFGHIKLMOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

37   Pass
m='JN'; vexp='NJABCDEFGHIKLMOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

38   Pass
m='OJ'; vexp='JOABCDEFGHIKLMNPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

39   Pass
m='YJ'; vexp='JYABCDEFGHIKLMNOPQRSTUVWXZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

40   Pass
m='ASQHIYWOVDK'; vexp='KDVOWYIHQSABCEFGJLMNPRTUXZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

41   Pass
m='JR'; vexp='RJABCDEFGHIKLMNOPQSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

42   Pass
m='IAQPHFOVLZRXK'; vexp='KXRZLVOFHPQAIBCDEGJMNSTUWY'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

43   Pass
m='TJ'; vexp='JTABCDEFGHIKLMNOPQRSUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

44   Pass
m='JB'; vexp='BJACDEFGHIKLMNOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

45   Pass
m='SKTMEYDBNQFGH'; vexp='HGFQNBDYEMTKSACIJLOPRUVWXZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

46   Pass
m='HJ'; vexp='JHABCDEFGIKLMNOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

47   Pass
m='LCIUBXSAMQJYNDRKTHPWEOV'; vexp='VOEWPHTKRDNYJQMASXBUICLFGZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

48   Pass
m='LEBIYF'; vexp='FYIBELACDGHJKMNOPQRSTUVWXZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

49   Pass
m='QDUFXPLKWJYOV'; vexp='VOYJWKLPXFUDQABCEGHIMNRSTZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

50   Pass
m='ZJ'; vexp='JZABCDEFGHIKLMNOPQRSTUVWXY'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

51   Pass
m='VNTIKRQLEUJZDSAYFHMG'; vexp='GMHFYASDZJUELQRKITNVBCOPWX'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

52   Pass
m='JU'; vexp='UJABCDEFGHIKLMNOPQRSTVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

53   Pass
m='CJ'; vexp='JCABDEFGHIKLMNOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

54   Pass
m='VJ'; vexp='JVABCDEFGHIKLMNOPQRSTUWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

55   Pass
m='GJ'; vexp='JGABCDEFHIKLMNOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

56   Pass
m='MJ'; vexp='JMABCDEFGHIKLNOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

57   Pass
m='JM'; vexp='MJABCDEFGHIKLNOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

58   Pass
m='JWPOBESYCLURKTMXGAQFHZ'; vexp='ZHFQAGXMTKRULCYSEBOPWJDINV'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

59   Pass
m='YXWVPTANLC'; vexp='CLNATPVWXYBDEFGHIJKMOQRSUZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

60   Pass
m='DHTGFSRVMWKNXOBUPCLAIQYEJZ'; vexp='ZJEYQIALCPUBOXNKWMVRSFGTHD'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

61   Pass
m='BHZLJATP'; vexp='PTAJLZHBCDEFGIKMNOQRSUVWXY'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

62   Pass
m='XJ'; vexp='JXABCDEFGHIKLMNOPQRSTUVWYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

63   Pass
m='AA'; vexp='ABCDEFGHIJKLMNOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

64   Pass
m='FKMWBLNRQUDHOGZVCIAE'; vexp='EAICVZGOHDUQRNLBWMKFJPSTXY'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

65   Pass
m='NQCHZXIUTVLKD'; vexp='DKLVTUIXZHCQNABEFGJMOPRSWY'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

66   Pass
m='JP'; vexp='PJABCDEFGHIKLMNOQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

67   Pass
m='OYSLPBQVHDZE'; vexp='EZDHVQBPLSYOACFGIJKMNRTUWX'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

68   Pass
m='JT'; vexp='TJABCDEFGHIKLMNOPQRSUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

69   Pass
m='JA'; vexp='AJBCDEFGHIKLMNOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

70   Pass
m='SJ'; vexp='JSABCDEFGHIKLMNOPQRTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

71   Pass
m='FJ'; vexp='JFABCDEGHIKLMNOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

72   Pass
m='ITQXRCOULKH'; vexp='HKLUOCRXQTIABDEFGJMNPSVWYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

73   Pass
m='EJ'; vexp='JEABCDFGHIKLMNOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

74   Pass
m='DJ'; vexp='JDABCEFGHIKLMNOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

75   Pass
m='VDSHZWRBAYUJEMFIONXPTKL'; vexp='LKTPXNOIFMEJUYABRWZHSDVCGQ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

76   Pass
m='PWGUA'; vexp='AUGWPBCDEFHIJKLMNOQRSTVXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

77   Pass
m='IMPOSSIBLE'; vexp='ELBISOPMACDFGHJKNQRTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

78   Pass
m='XBYKNRGLJVFEPTUO'; vexp='OUTPEFVJLGRNKYBXACDHIMQSWZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

79   Pass
m='JH'; vexp='HJABCDEFGIKLMNOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

80   Pass
m='KTMDLQ'; vexp='QLDMTKABCEFGHIJNOPRSUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

81   Pass
m='LUNSVKPGFJOXEAQMBDZ'; vexp='ZDBMQAEXOJFGPKVSNULCHIRTWY'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

82   Pass
m='IJ'; vexp='JIABCDEFGHKLMNOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

83   Pass
m='VOKCMQBHWUNZGJ'; vexp='JGZNUWHBQMCKOVADEFILPRSTXY'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

84   Pass
m='JY'; vexp='YJABCDEFGHIKLMNOPQRSTUVWXZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

85   Pass
m='A'; vexp='IMPOSSIBLE'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

86   Pass
m='JW'; vexp='WJABCDEFGHIKLMNOPQRSTUVXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

87   Pass
m='JX'; vexp='XJABCDEFGHIKLMNOPQRSTUVWYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

88   Pass
m='JF'; vexp='FJABCDEGHIKLMNOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

89   Pass
m='SLMAWBIKZCXOHQFGPYUDNJV'; vexp='VJNDUYPGFQHOXCZKIBWAMLSERT'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

90   Pass
m='XDLNMWTESQIFYRHCPOA'; vexp='AOPCHRYFIQSETWMNLDXBGJKUVZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

91   Pass
m='KJ'; vexp='JKABCDEFGHILMNOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

92   Pass
m='MHZAXUFKDVQORNWYTCGEISBJ'; vexp='JBSIEGCTYWNROQVDKFUXAZHMLP'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

93   Pass
m='DCAZKJ'; vexp='JKZACDBEFGHILMNOPQRSTUVWXY'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

94   Pass
m='BJ'; vexp='JBACDEFGHIKLMNOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

95   Pass
m='JZ'; vexp='ZJABCDEFGHIKLMNOPQRSTUVWXY'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

96   Pass
m='JG'; vexp='GJABCDEFHIKLMNOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

97   Pass
m='SAMWRULICJGBEFYKVQTONPDZXH'; vexp='HXZDPNOTQVKYFEBGJCILURWMAS'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

98   Pass
m='JS'; vexp='SJABCDEFGHIKLMNOPQRTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

99   Pass
m='JE'; vexp='EJABCDFGHIKLMNOPQRSTUVWXYZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1)

100   Pass
m='YXUMAFB'; vexp='BFAMUXYCDEGHIJKLNOPQRSTVWZ'; v=Password(m); valid=1; if ~strcmp(unique(v),char(65:90)),valid=0;end if ~isempty(strfind(v,m)),valid=0;end; if strcmp(vexp,'IMPOSSIBLE'),valid=strcmp(v,'IMPOSSIBLE');end assert(valid==1) toc

Elapsed time is 1.859389 seconds.