% Test file for function diag()
% Matlab version: 7.9.0.529 (R2009b)

% TEST 1
res1 = diag([]);
% TEST 2
res2 = diag(m2sciUnknownType([]));
% TEST 3
res3 = diag(m2sciUnknownDims([]));
% TEST 4
res4 = diag([1]);
% TEST 5
res5 = diag([1,2,3]);
% TEST 6
res6 = diag([1;2;3]);
% TEST 7
res7 = diag([1,2,3;4,5,6]);
% TEST 8
res8 = diag(m2sciUnknownType([1]));
% TEST 9
res9 = diag(m2sciUnknownType([1,2,3]));
% TEST 10
res10 = diag(m2sciUnknownType([1;2;3]));
% TEST 11
res11 = diag(m2sciUnknownType([1,2,3;4,5,6]));
% TEST 12
res12 = diag(m2sciUnknownDims([1]));
% TEST 13
res13 = diag(m2sciUnknownDims([1,2,3]));
% TEST 14
res14 = diag(m2sciUnknownDims([1;2;3]));
% TEST 15
res15 = diag(m2sciUnknownDims([1,2,3;4,5,6]));
% TEST 16
res16 = diag([i]);
% TEST 17
res17 = diag([i,2i,3i]);
% TEST 18
res18 = diag([i;2i;3i]);
% TEST 19
res19 = diag([i,2i,3i;4i,5i,6i]);
% TEST 20
res20 = diag(m2sciUnknownType([i]));
% TEST 21
res21 = diag(m2sciUnknownType([i,2i,3i]));
% TEST 22
res22 = diag(m2sciUnknownType([i;2i;3i]));
% TEST 23
res23 = diag(m2sciUnknownType([i,2i,3i;4i,5i,6i]));
% TEST 24
res24 = diag(m2sciUnknownDims([i]));
% TEST 25
res25 = diag(m2sciUnknownDims([i,2i,3i]));
% TEST 26
res26 = diag(m2sciUnknownDims([i;2i;3i]));
% TEST 27
res27 = diag(m2sciUnknownDims([i,2i,3i;4i,5i,6i]));
% TEST 28
res28 = diag(['s']);
% TEST 29
res29 = diag(['str1']);
% TEST 30
res30 = diag(['str1','str2','str3']);
% TEST 31
res31 = diag(['str1';'str2';'str3']);
% TEST 32
res32 = diag(['str1','str2','str3';'str4','str5','str6']);
% TEST 33
res33 = diag(m2sciUnknownType(['s']));
% TEST 34
res34 = diag(m2sciUnknownType(['str1']));
% TEST 35
res35 = diag(m2sciUnknownType(['str1','str2','str3']));
% TEST 36
res36 = diag(m2sciUnknownType(['str1';'str2';'str3']));
% TEST 37
res37 = diag(m2sciUnknownType(['str1','str2','str3';'str4','str5','str6']));
% TEST 38
res38 = diag(m2sciUnknownDims(['s']));
% TEST 39
res39 = diag(m2sciUnknownDims(['str1']));
% TEST 40
res40 = diag(m2sciUnknownDims(['str1','str2','str3']));
% TEST 41
res41 = diag(m2sciUnknownDims(['str1';'str2';'str3']));
% TEST 42
res42 = diag(m2sciUnknownDims(['str1','str2','str3';'str4','str5','str6']));
% TEST 43
res43 = diag([[1]==[1]]);
% TEST 44
res44 = diag([[1,2,3]==[1,0,3]]);
% TEST 45
res45 = diag([[1;2;3]==[1;0;3]]);
% TEST 46
res46 = diag([[1,2,3;4,5,6]==[1,0,3;4,5,0]]);
% TEST 47
res47 = diag(m2sciUnknownType([[1]==[1]]));
% TEST 48
res48 = diag(m2sciUnknownType([[1,2,3]==[1,0,3]]));
% TEST 49
res49 = diag(m2sciUnknownType([[1;2;3]==[1;0;3]]));
% TEST 50
res50 = diag(m2sciUnknownType([[1,2,3;4,5,6]==[1,0,3;4,5,0]]));
% TEST 51
res51 = diag(m2sciUnknownDims([[1]==[1]]));
% TEST 52
res52 = diag(m2sciUnknownDims([[1,2,3]==[1,0,3]]));
% TEST 53
res53 = diag(m2sciUnknownDims([[1;2;3]==[1;0;3]]));
% TEST 54
res54 = diag(m2sciUnknownDims([[1,2,3;4,5,6]==[1,0,3;4,5,0]]));
% TEST 55
res55 = diag([],1);
% TEST 56
res56 = diag(m2sciUnknownType([]),1);
% TEST 57
res57 = diag(m2sciUnknownDims([]),1);
% TEST 58
res58 = diag([1],1);
% TEST 59
res59 = diag([1,2,3],1);
% TEST 60
res60 = diag([1;2;3],1);
% TEST 61
res61 = diag([1,2,3;4,5,6],1);
% TEST 62
res62 = diag(m2sciUnknownType([1]),1);
% TEST 63
res63 = diag(m2sciUnknownType([1,2,3]),1);
% TEST 64
res64 = diag(m2sciUnknownType([1;2;3]),1);
% TEST 65
res65 = diag(m2sciUnknownType([1,2,3;4,5,6]),1);
% TEST 66
res66 = diag(m2sciUnknownDims([1]),1);
% TEST 67
res67 = diag(m2sciUnknownDims([1,2,3]),1);
% TEST 68
res68 = diag(m2sciUnknownDims([1;2;3]),1);
% TEST 69
res69 = diag(m2sciUnknownDims([1,2,3;4,5,6]),1);
% TEST 70
res70 = diag([i],1);
% TEST 71
res71 = diag([i,2i,3i],1);
% TEST 72
res72 = diag([i;2i;3i],1);
% TEST 73
res73 = diag([i,2i,3i;4i,5i,6i],1);
% TEST 74
res74 = diag(m2sciUnknownType([i]),1);
% TEST 75
res75 = diag(m2sciUnknownType([i,2i,3i]),1);
% TEST 76
res76 = diag(m2sciUnknownType([i;2i;3i]),1);
% TEST 77
res77 = diag(m2sciUnknownType([i,2i,3i;4i,5i,6i]),1);
% TEST 78
res78 = diag(m2sciUnknownDims([i]),1);
% TEST 79
res79 = diag(m2sciUnknownDims([i,2i,3i]),1);
% TEST 80
res80 = diag(m2sciUnknownDims([i;2i;3i]),1);
% TEST 81
res81 = diag(m2sciUnknownDims([i,2i,3i;4i,5i,6i]),1);
% TEST 82
res82 = diag(['s'],1);
% TEST 83
res83 = diag(['str1'],1);
% TEST 84
res84 = diag(['str1','str2','str3'],1);
% TEST 85
res85 = diag(['str1';'str2';'str3'],1);
% TEST 86
res86 = diag(['str1','str2','str3';'str4','str5','str6'],1);
% TEST 87
res87 = diag(m2sciUnknownType(['s']),1);
% TEST 88
res88 = diag(m2sciUnknownType(['str1']),1);
% TEST 89
res89 = diag(m2sciUnknownType(['str1','str2','str3']),1);
% TEST 90
res90 = diag(m2sciUnknownType(['str1';'str2';'str3']),1);
% TEST 91
res91 = diag(m2sciUnknownType(['str1','str2','str3';'str4','str5','str6']),1);
% TEST 92
res92 = diag(m2sciUnknownDims(['s']),1);
% TEST 93
res93 = diag(m2sciUnknownDims(['str1']),1);
% TEST 94
res94 = diag(m2sciUnknownDims(['str1','str2','str3']),1);
% TEST 95
res95 = diag(m2sciUnknownDims(['str1';'str2';'str3']),1);
% TEST 96
res96 = diag(m2sciUnknownDims(['str1','str2','str3';'str4','str5','str6']),1);
% TEST 97
res97 = diag([[1]==[1]],1);
% TEST 98
res98 = diag([[1,2,3]==[1,0,3]],1);
% TEST 99
res99 = diag([[1;2;3]==[1;0;3]],1);
% TEST 100
res100 = diag([[1,2,3;4,5,6]==[1,0,3;4,5,0]],1);
% TEST 101
res101 = diag(m2sciUnknownType([[1]==[1]]),1);
% TEST 102
res102 = diag(m2sciUnknownType([[1,2,3]==[1,0,3]]),1);
% TEST 103
res103 = diag(m2sciUnknownType([[1;2;3]==[1;0;3]]),1);
% TEST 104
res104 = diag(m2sciUnknownType([[1,2,3;4,5,6]==[1,0,3;4,5,0]]),1);
% TEST 105
res105 = diag(m2sciUnknownDims([[1]==[1]]),1);
% TEST 106
res106 = diag(m2sciUnknownDims([[1,2,3]==[1,0,3]]),1);
% TEST 107
res107 = diag(m2sciUnknownDims([[1;2;3]==[1;0;3]]),1);
% TEST 108
res108 = diag(m2sciUnknownDims([[1,2,3;4,5,6]==[1,0,3;4,5,0]]),1);
% TEST 109
res109 = diag([],2);
% TEST 110
res110 = diag(m2sciUnknownType([]),2);
% TEST 111
res111 = diag(m2sciUnknownDims([]),2);
% TEST 112
res112 = diag([1],2);
% TEST 113
res113 = diag([1,2,3],2);
% TEST 114
res114 = diag([1;2;3],2);
% TEST 115
res115 = diag([1,2,3;4,5,6],2);
% TEST 116
res116 = diag(m2sciUnknownType([1]),2);
% TEST 117
res117 = diag(m2sciUnknownType([1,2,3]),2);
% TEST 118
res118 = diag(m2sciUnknownType([1;2;3]),2);
% TEST 119
res119 = diag(m2sciUnknownType([1,2,3;4,5,6]),2);
% TEST 120
res120 = diag(m2sciUnknownDims([1]),2);
% TEST 121
res121 = diag(m2sciUnknownDims([1,2,3]),2);
% TEST 122
res122 = diag(m2sciUnknownDims([1;2;3]),2);
% TEST 123
res123 = diag(m2sciUnknownDims([1,2,3;4,5,6]),2);
% TEST 124
res124 = diag([i],2);
% TEST 125
res125 = diag([i,2i,3i],2);
% TEST 126
res126 = diag([i;2i;3i],2);
% TEST 127
res127 = diag([i,2i,3i;4i,5i,6i],2);
% TEST 128
res128 = diag(m2sciUnknownType([i]),2);
% TEST 129
res129 = diag(m2sciUnknownType([i,2i,3i]),2);
% TEST 130
res130 = diag(m2sciUnknownType([i;2i;3i]),2);
% TEST 131
res131 = diag(m2sciUnknownType([i,2i,3i;4i,5i,6i]),2);
% TEST 132
res132 = diag(m2sciUnknownDims([i]),2);
% TEST 133
res133 = diag(m2sciUnknownDims([i,2i,3i]),2);
% TEST 134
res134 = diag(m2sciUnknownDims([i;2i;3i]),2);
% TEST 135
res135 = diag(m2sciUnknownDims([i,2i,3i;4i,5i,6i]),2);
% TEST 136
res136 = diag(['s'],2);
% TEST 137
res137 = diag(['str1'],2);
% TEST 138
res138 = diag(['str1','str2','str3'],2);
% TEST 139
res139 = diag(['str1';'str2';'str3'],2);
% TEST 140
res140 = diag(['str1','str2','str3';'str4','str5','str6'],2);
% TEST 141
res141 = diag(m2sciUnknownType(['s']),2);
% TEST 142
res142 = diag(m2sciUnknownType(['str1']),2);
% TEST 143
res143 = diag(m2sciUnknownType(['str1','str2','str3']),2);
% TEST 144
res144 = diag(m2sciUnknownType(['str1';'str2';'str3']),2);
% TEST 145
res145 = diag(m2sciUnknownType(['str1','str2','str3';'str4','str5','str6']),2);
% TEST 146
res146 = diag(m2sciUnknownDims(['s']),2);
% TEST 147
res147 = diag(m2sciUnknownDims(['str1']),2);
% TEST 148
res148 = diag(m2sciUnknownDims(['str1','str2','str3']),2);
% TEST 149
res149 = diag(m2sciUnknownDims(['str1';'str2';'str3']),2);
% TEST 150
res150 = diag(m2sciUnknownDims(['str1','str2','str3';'str4','str5','str6']),2);
% TEST 151
res151 = diag([[1]==[1]],2);
% TEST 152
res152 = diag([[1,2,3]==[1,0,3]],2);
% TEST 153
res153 = diag([[1;2;3]==[1;0;3]],2);
% TEST 154
res154 = diag([[1,2,3;4,5,6]==[1,0,3;4,5,0]],2);
% TEST 155
res155 = diag(m2sciUnknownType([[1]==[1]]),2);
% TEST 156
res156 = diag(m2sciUnknownType([[1,2,3]==[1,0,3]]),2);
% TEST 157
res157 = diag(m2sciUnknownType([[1;2;3]==[1;0;3]]),2);
% TEST 158
res158 = diag(m2sciUnknownType([[1,2,3;4,5,6]==[1,0,3;4,5,0]]),2);
% TEST 159
res159 = diag(m2sciUnknownDims([[1]==[1]]),2);
% TEST 160
res160 = diag(m2sciUnknownDims([[1,2,3]==[1,0,3]]),2);
% TEST 161
res161 = diag(m2sciUnknownDims([[1;2;3]==[1;0;3]]),2);
% TEST 162
res162 = diag(m2sciUnknownDims([[1,2,3;4,5,6]==[1,0,3;4,5,0]]),2);
