reset
Reset state of track logic
Syntax
Description
Examples
Create a history-based logic using the default confirmation threshold and deletion threshold. Get the current state of the logic. The current and maximum score are both 0
.
historyLogic = trackHistoryLogic; history = output(historyLogic)
history = 1×6 logical array
0 0 0 0 0 0
Initialize the logic, then get the current state of the logic.
volume = 1.3; beta = 0.1; init(historyLogic); history = output(historyLogic)
history = 1×6 logical array
1 0 0 0 0 0
Reset the logic, then get the current state of the logic.
reset(historyLogic) history = output(historyLogic)
history = 1×6 logical array
0 0 0 0 0 0
Create a score-based logic using the default confirmation threshold and deletion threshold. Get the current state of the logic. The current and maximum score are both 0
.
scoreLogic = trackScoreLogic; score = output(scoreLogic)
score = 1×2
0 0
Initialize the logic, then get the current state of the logic.
volume = 1.3; beta = 0.1; init(scoreLogic,volume,beta); score = output(scoreLogic)
score = 1×2
11.6699 11.6699
Reset the logic, then get the current state of the logic. The current and maximum score are both 0
.
reset(scoreLogic) score = output(scoreLogic)
score = 1×2
0 0
Input Arguments
Track logic, specified as a trackHistoryLogic
object or trackScoreLogic
object.
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Version History
Introduced in R2018b
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.
América
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)