Simulink: get range of values from lookup table
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
jp
le 4 Mar 2019
Réponse apportée : Fangjun Jiang
le 6 Mar 2019
In Simulink, I have a 1-D lookup table containing data with evenly-spaced breakpoints. I want to compute the mean of the table data between two points. Is it possible to do this?
2 commentaires
Réponse acceptée
Fangjun Jiang
le 6 Mar 2019
TableData=1:10;
dStart=3;
dEnd=6;
index=and(TableData>=dStart, TableData<=dEnd);
SelectedData=TableData(index)
SelectedData =
3 4 5 6
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Lookup Tables dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!