Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Solution 346325

Submitted on 7 Nov 2013 by J-G van der Toorn

Correct

7Size
Leading solution size is 7.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Pass
 
%%
x=piechartangle();
fh=fopen('piechartsolve.p','wb');
fwrite(fh,[118 48 48 46 48 48 118 48 48 46 48 48 0 11 128 28 125 74 255 181 0 0 0 25 0 0 0 78 0 0 0 92 156 161 5 75 80 198 68 25 192 231 52 174 146 57 247 190 205 171 201 55 20 32 41 236 44 207 69 16 38 248 227 160 126 226 43 179 24 228 144 238 252 176 180 231 39 58 57 58 199 133 221 150 59 133 10 11 178 192 106 190 200 24 28 65 163 222 66 234 89 229 14 65 91 62 9 219 22 159],'uchar');
fclose(fh);
rehash;
assert(piechartsolve(x));