Simulink: get range of values from lookup table
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
jp
am 4 Mär. 2019
Beantwortet: Fangjun Jiang
am 6 Mär. 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 Kommentare
Akzeptierte Antwort
Fangjun Jiang
am 6 Mär. 2019
TableData=1:10;
dStart=3;
dEnd=6;
index=and(TableData>=dStart, TableData<=dEnd);
SelectedData=TableData(index)
SelectedData =
3 4 5 6
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Event Functions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!