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 187437

Submitted on 7 Jan 2013 by Evan

Correct

12Size
Leading solution size is 12.
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
 
%%
u = [1 3 5 3]; v = [1,1];
y_correct = [1 2 3];
assert(isequal(poly_div(u,v),y_correct));
ans =
     1     2     3
2
Pass
 
%%
u=[4 -2 -14 -3 17 21 9]; v = [1 2 1];
y_correct = [4 -10 2 3 9];
assert(isequal(poly_div(u,v),y_correct));
ans =
     4   -10     2     3     9