[r, p, k] = residue([1, -14],[1,-1,-2] );
運行上面給出了正確的輸出。
[a,b,c,d] = residue([2 -16 40 -42], [1 -11 39 -45]);
運行上面給了我 Error using residue Too many output arguments.
有人可以解釋為什么第一個函式有效但第二個函式給我一個錯誤?
謝謝!
uj5u.com熱心網友回復:
我意識到問題是什么。你必須把你的輸出放在 [r, p, k] = 殘基(a,b)的形式中。
答案是以下形式:
b = [2 -16 40 -42]; a = [1 -11 39 -45]; [r, p, k] = residue(b,a);
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/350377.html
上一篇:在matlab中比較2個浮點數
