フィルターのクリア

How to obtain a continuous acceleration plot from velocity plot?

2 ビュー (過去 30 日間)
SHALINI R
SHALINI R 2022 年 11 月 22 日
回答済み: Sakshay 2022 年 11 月 29 日
I used derivative block to obtain acceleration plot from velocity plot. I got discrete graph.But I need a continuous graph .How can I obtain a continuous acceleration plot from velocity plot?
  3 件のコメント
SHALINI R
SHALINI R 2022 年 11 月 22 日
continuous
Mathieu NOE
Mathieu NOE 2022 年 11 月 22 日
well, data you have / get from a simulation are always discrete points, whatever the solver you use
only by plotting a line that goes through those points you have the feeling it's continuous
"true" continuous signals would mean a infinite number of points for whatever signal duration;
so to me it's more a question how you plot the data that may be the issue

サインインしてコメントする。

回答 (1 件)

Sakshay
Sakshay 2022 年 11 月 29 日
Hello Shalini,
As per my understanding, you are trying to generate the plot for the derivative of a quantity. But, the plot generated doesn't seem to be continuous.
The Derivative Block is a continuous block in Simulink. The plot we receive in Simulink is dependent on the step size of the model. If you want a more detailed (fine-grained) plot, you can adjust the step size accordingly. In your case, this would be done by lowering the step size.
You can adjust the step size, from the Configuration Parameters of the Simulink Model. In the Solver pane of the Configuration window, select the Fixed-step Solver Type. And fill a small value (like 0.01) in the Fixed-step size.
This can also be done programmatically, using the command:
sim('modelName','StartTime','0','StopTime','10','FixedStep','0.01');
For more information on the Solver Pane of Configuration Parameters, you can refer to the following documentation:

カテゴリ

Help Center および File ExchangeScopes and Data Logging についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by