MATLAB Answers


how to convert discrete data to continuous data?

Asked by Aniket
on 15 Mar 2013

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

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)




No products are associated with this question.

1 Answer

Answer by Honglei Chen
on 15 Mar 2013

You need to specify the sample time in ss, something like



Azzi Abdelmalek
on 15 Mar 2013

Aniket, sysd=ss(As,Bs,Cs,Ds) ; is not a discrete model, it's continuous

on 15 Mar 2013

ok but if the A,B,C,D matrix data is discrete then how should i convert it to continuous?

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!