deconv function remainder won't appear
古いコメントを表示
hi I'm trying yo divide two arrays using the decent, i know it uses polynomial division and how it works but i wrote this function as a test to see whether it worked and i only get one answer and that the quotient... why is there no remainder when there should be? have i written it wrong?
function [q,r] = arraydiv(c,u)
[q,r] = deconv(c,u);
end
i have c=[1,5] and u=[1,2] (just a simple example) so when i try to use the function all i get is ans =1 but there should be a remainder? and shouldn't it say q=1 r=3?
thankyou I'm sure I'm just doing something stupid
採用された回答
その他の回答 (1 件)
カテゴリ
ヘルプ センター および File Exchange で Operating on Diagonal Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!