Using lookup table simultaneously with matlab function
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi. I am looking at an application where in my simulink model, I am using a MATLAB function which is required to give an optimal value for a variable. For finding that optimal value, say it goes from 0 to 1, I need to evaluate a cost function which I evaluate using a lookup table. How can I call the lookup table at each iteration to calculate the cost function? The interpolated value from the lookup table depends on the variable I am trying to obtain as output.
Or, is there an alternative where I can define the lookup table as a MATLAB script and use it in the MATLAB function? I tried to use ScatteredInterpolant but came to know that it is not supported in Simulink. So, I was not able to find a straight-forward way to evaluate the cost function.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Approximate Functions with Lookup Tables에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!