Simulink: get range of values from lookup table
4 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Fangjun Jiang
2019 年 3 月 6 日
TableData=1:10;
dStart=3;
dEnd=6;
index=and(TableData>=dStart, TableData<=dEnd);
SelectedData=TableData(index)
SelectedData =
3 4 5 6
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Lookup Tables についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!