lsim function undersample error

조회 수: 7 (최근 30일)
gmltn1212
gmltn1212 2021년 7월 19일
답변: Sameer Pujari 2021년 7월 19일
Hi, I am trying to plot the response of a state space function on MATLAB using lsim function. However, everytime I run the code, I get undersampling error. My t is
t = linspace(0,300)
meaing that it has plenty of samples to run... I have no idea why it's keep returning an error. Can someone help me with this?

답변 (1개)

Sameer Pujari
Sameer Pujari 2021년 7월 19일
Lower sample rate normally issues a warning not error.
t = linspace(0,300)
Above command generates 100 sample points between 0 to 300.
However, Lsim might recommend using higher sample rate.
Please refer to the following document, it might help you
https://in.mathworks.com/help/control/ref/lti.lsim.html

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by