Load Sfit data in Simulink

16 ビュー (過去 30 日間)
Miroslaw Faes
Miroslaw Faes 2023 年 5 月 1 日
回答済み: Sachin 2023 年 5 月 11 日
I try to implement fitted surface data of type sfit in simulink such that it can be used as a lookup table z = f(x,y). However, there does not seem a clear method to apply this. With the Matlab function block, the variable cannot be loaded from memory and cannot be called using global variables. Is there a way to load the surface fit or is there another method to implement this?

回答 (1 件)

Sachin
Sachin 2023 年 5 月 11 日
Hi
I understand that you want to load sfit data in Simulink.
I suggest you to first load the sfit data from the memory by following “load” function. After loading the data evaluate the data using “z = fevel(data,x,y)” . Then try using the output in the MATLAB function block in Simulink.
Refer the below MATLAB documentation to know more about “fevel” function :
Refer to this MATLAB Answer for more information about using fitted data in Simulink.
Hope this helps you

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

タグ

製品


リリース

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by