how to convert discrete data to continuous data?
5 次查看(过去 30 天)
显示 更早的评论
Hello I have discrete A,B,C,D system matrices, and i want to convert them in continuous , i have written a script for this but it is giving me error . how should i do this ?
********
load ABCD_matrix.mat
sysd=ss(As,Bs,Cs,Ds);
sysc=d2c(sysd,'zoh');
[Asc,Bsc,Csc,Dsc]=ssdata(sysc);
********************
the error is
Error using DynamicSystem/d2c (line 35)
The first input argument of the "d2c" command must be a discrete-time model.
Error in LQGG (line 5)
sysc=d2c(sysd,'zoh');
0 个评论
回答(1 个)
Honglei Chen
2013-3-15
You need to specify the sample time in ss, something like
ss(A,B,C,D,Ts)
2 个评论
Azzi Abdelmalek
2013-3-15
编辑:Azzi Abdelmalek
2013-3-15
Aniket, sysd=ss(As,Bs,Cs,Ds) ; is not a discrete model, it's continuous
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Power and Energy Systems 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!