MATLAB: How to convert 66 x 2 cell array into matrix

cell2mat

a =
16 282
54 96
64 134
70 52
87 108
88 135
97 266
101 42
104 84
106 53
107 174
114 262
116 57
123 169
124 87
124 260
138 77
139 60
141 23
143 81
149 230
153 246
161 222
163 147
163 268
169 21
169 121
173 185
174 36
176 67
176 275
177 246
191 71
194 48
203 36
205 101
209 118
209 224
212 64
213 104
218 32
221 81
223 109
228 32
228 130
235 61
236 132
238 73
243 203
246 66
247 156
260 131
260 176
261 229
262 152
269 236
272 187
279 159
280 174
289 69
291 39
292 96
294 121
305 266
306 335
312 301
I got an error when I convert cell into matrix
c=cell2mat(a);

Best Answer

A cell array will not show up as "66X2 double". Only a matrix of type double (the standard type) will do that. So the answer is that cell2mat fails, because a already is a matrix.