| MATLAB Function Reference | ![]() |
從 odeset 產生的選項結構中擷取出一些屬性。
Syntax
o = odeget(options,'name') o = odeget(options,'name',default)
Description
o = odeget(options,'name')
從積算器選項架構 options 中,擷取出由字串 'name' 定義的屬性值。如果屬性的值沒有定義在 options 中,會回傳一個空矩陣。只要輸入可以獨立確定屬性名稱的前幾個字母就可以了。屬性名稱的大小寫會被忽略。空矩陣 [] 是錯誤的 options 參數。
o = odeget(options,'name',default)
如果屬性名稱沒有定義在 options 中,回傳 o = default。
Example
options = odeset('RelTol',1e-4,'AbsTol',[1e-3 2e-3 3e-3]);
odeget(options,'RelTol')
ans =
1.0000e-04
odeget(options,'AbsTol')
ans =
0.0010 0.0020 0.0030
See Also
| odefile | odeset | ![]() |