why step size is divided by 50?

3 ビュー (過去 30 日間)
sk karimulla
sk karimulla 2018 年 3 月 9 日
コメント済み: sk karimulla 2018 年 8 月 26 日
step size = (Tmax-Tmin)/50
my question is why it should divided by 50?
  4 件のコメント
sk karimulla
sk karimulla 2018 年 3 月 9 日
It is formula for step size,step size is used to solve the simulink model.step size = (Tmax-Tmin)/50, in this formula why 50 is taken to calculate the step size.
Rik
Rik 2018 年 3 月 9 日
Without more specific context of your system it is still impossible to give you a more meaningful answer. Apparently the units that Tmin and Tmax are in are 50 times larger than the step size of the model, or there should be 50 steps, or any other reason.

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

採用された回答

Abraham Boayue
Abraham Boayue 2018 年 3 月 9 日
編集済み: Rik 2018 年 8 月 25 日
HI SK, Let say you have a function f (t) and you want to plot it between t = Tmin and Tmax, in matlab, you have to choose a step size to do so. The step size is defined as delta = (Tmax-Tmin)/(N-1), This is exactly what the function linspace does. The following are equivalent :
N = 51;
stepsize = (Tmax-Tmin)/50;
t = Tmin:stepsize:Tmax;
t = linspace (Tmin, Tmax, 50);
  1 件のコメント
sk karimulla
sk karimulla 2018 年 8 月 26 日
Thank you

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeString についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by