SAMPLE TIME , SIMULATION TIME , STEPSIZE IN DETAIL
조회 수: 4 (최근 30일)
이전 댓글 표시
DIFFERENCE BETWEEN SAMPLE TIME AND STEPSIZE AND SIMULATION TIME
댓글 수: 0
답변 (2개)
John D'Errico
2023년 1월 5일
편집: John D'Errico
2023년 1월 5일
This is not remotely a question about MATLAB. But since these words are often used by many of the tools in MATLAB, I'll assume you are asking about how they are used IN MATLAB.
They are just words. And words carry subtle connotations, but different people will often use different words to mean the same things, or the same words will mean something different to someone else than to you. In the end, they mean exactly what the writer of the software you are hoping to use wants them to mean, nothing more, nothing less. Lacking any context, they can easily mean different things to different people. As I would interpret those phrases:
"Stepsize" is generally intended to mean the stride length between consecutive steps.
x = 0:0.2:10;
so the stepsize there is 0.2. Note that stepsize need not indicate a TIME step. So stepsize may be used in physical problems where the step is a spatial increment, so units of length. But stepsize may also be a time increment.
"Sample time" is most likely used to indicate overall time of an experiment, or in some cases, it may possibly indicate an increment in time, much like stepsize. However, sample time would essentially always have units of time.
"Simulation time" would (I think) almost always indicate the total time a simulation would be run over. It implies that a simulation will be done, and indicates the total length of the simulation. Again, simulation time will again have units of time, but nothing stops the user from solving other non-temporal problems.
For example, in context of a solver like ODE45, we would find:
help ode45
In there, we see the input argument TSPAN. In fact, the help repeatedly refers to TSPAN as it it has units of time, but nothing stops you from solving an ODE where the independent variable is a spatial one.
I'm not at all sure this answers your question, but then I'm not really sure what your question asks, or what software you are thinking about where these terms are used. It may be a question about a tool like Simulink, or one of the ODE solvers. It might even be in context of a tool like simulated annealing, where time is just used purely by way of analogy. And I am sure there are other codes that use these same phrases in some other context.
댓글 수: 0
Paul
2023년 1월 5일
Assuming this Question is in regards to Simulink:
SIMULATION TIME: Refers to the master clock of the Simulink simulation.
SAMPLE TIME: Each block has a sample time that determines when the block output is calculated during simulation. Sample Time
STEPSIZE: Size of the step that solver takes from the current solution to the next solution. Can be fixed or variable. Solver
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 General Applications에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!