How can i use a 2-D lookup table as feedback for a Matlab Function Block?
3 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151014/image.png)
Inside the matlab block i've got 2 vectors containing the a value called 'Power ratio' and a Wind speed for each turbine of a wind farm. I have to give in input of the lookup table every entry of these two vectors and obtain anoter vector inside the PratioGenerator block with the corresponding value of fatigue for the given conditions of Pratio and Wspeed of every wind turbine.
In other words, at a certain point in the excution of PratioGenerator i have to call the lookup table-integrator blocks giving in input one by one elements of the vectors Pratio and Wspeed and receiving in output a value of from the lookup table which i can store in another matrix inside the PratioGenerator block, in orde to execute further elaborations.
What can I do about it (the block diagram is just a scratch)
0 个评论
回答(1 个)
Zack Peters
2013-10-25
编辑:Zack Peters
2013-10-25
Hi Lorenzo,
Based on your explanation, it does not seem as though the two outputs of the MATLAB function block (Pratio and Wspeed) are at all related to the 'Fatigue' input to the block.
If this is the case I would create some vectors for Pratio and Wspeed either in constant blocks or with From Workspace blocks and pass those vectors into the Lookup Table block. From there you can take the fatigue output and perform additional calculations on it downstream from the Lookup Table. If you also require the Pratio and Wspeed vectors to perform calculations within the MATLAB function block downstream then you can branch off the signals before the Lookup Table and send them as additional inputs to the MATLAB function block.
~Zack
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Block Libraries 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!