init
This commit is contained in:
10
FOTF Toolbox/@fotf/double.m
Normal file
10
FOTF Toolbox/@fotf/double.m
Normal file
@ -0,0 +1,10 @@
|
||||
function a=double(G)
|
||||
%double - convert FOTF to double, if possible
|
||||
|
||||
% Copyright (c) Dingyu Xue, Northeastern University, China
|
||||
% Last modified 28 May, 2022
|
||||
if G.num.na==0 && G.den.na==0
|
||||
a=G.num.a./G.den.a;
|
||||
else, error('G contains dynamic terms, cannot be converted into double')
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user