What is the best way to produce a time vector for use in a Simulink model simulation?

7 ビュー (過去 30 日間)
Marcelo
Marcelo 2017 年 5 月 10 日
Hi,
I would like to simulate a Simulink model during 1.0 sec. I want to do that using the command "sim" and passing the time vector as an input data.
I can create time vectors lasting from 0.0 to 1.0 and linearly spaced by 0.1 steps using different methods:
time_vector_1 = (0:1:10) .* 0.1;
time_vector_2 = linspace(0, 1, 11);
time_vector_3 = 0:0.1:1;
For using in a Simulink model simulation, which one is the best choice?
Thank you

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by