필터 지우기
필터 지우기

how to convert discrete data to continuous data?

조회 수: 4 (최근 30일)
Aniket
Aniket 2013년 3월 15일
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');

답변 (1개)

Honglei Chen
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
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
Aniket
Aniket 2013년 3월 15일
ok but if the A,B,C,D matrix data is discrete then how should i convert it to continuous?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Power and Energy Systems에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by