SAMPLE TIME , SIMULATION TIME , STEPSIZE IN DETAIL
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
DIFFERENCE BETWEEN SAMPLE TIME AND STEPSIZE AND SIMULATION TIME
0 Commenti
Risposte (2)
John D'Errico
il 5 Gen 2023
Modificato: John D'Errico
il 5 Gen 2023
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 Commenti
Paul
il 5 Gen 2023
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 Commenti
Vedere anche
Categorie
Scopri di più su General Applications in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!