lsim function undersample error

41 ビュー (過去 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 Center および File ExchangeDigital Filter Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by