function [podil, zbytek] = mrdivide(p1,p2)
% polynom/mrdivide - deleni polynomu polynomem, se zbytkem
% [podil,zbytek] = p1/p2

p1 = polynom(p1);
p2 = polynom(p2);
[a,b] = deconv(p1.koeficienty,p2.koeficienty); % vyuzijeme deleni vektoru
podil.koeficienty = a;
zbytek.koeficienty = b;
podil = class(podil,'polynom'); % lze tez: podil=polynom(a);
zbytek = class(zbytek,'polynom');