フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How could I implement an array that is constantly recovering data through the entire simulink model?

1 回表示 (過去 30 日間)
Mariana
Mariana 2020 年 5 月 5 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Let's say that I have a simple matlab function that computes the sum of two values. I would like to save all of the results in an array so that other matlab function searches for a value inside it based on some inputs.
Is it possible to implement something like this?
  3 件のコメント
Mariana
Mariana 2020 年 5 月 5 日
Something similar to the attached model. Create an array of a fixed size where I will add the result of the sum. The other function will search for the result based on other input without the need to make the add operation.
Walter Roberson
Walter Roberson 2020 年 5 月 5 日
If you would be looking for pulling back the result given exactly the same inputs, then see memoize()
Otherwise, would the idea be to interp2() on the growing set of values ? If so then you might need to use a datastore (or global variable)

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by