フィルターのクリア

How can i use a 2-D lookup table as feedback for a Matlab Function Block?

1 回表示 (過去 30 日間)
Lorenzo Pipponzi
Lorenzo Pipponzi 2013 年 10 月 22 日
編集済み: Zack Peters 2013 年 10 月 25 日
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)

回答 (1 件)

Zack Peters
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

カテゴリ

Help Center および File ExchangeBlock Libraries についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by