Simulink - Store and use amplitude data during simulation (Stateflow?)
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
Hi,
during a simulink simulation using simscape I want to use already calculated data. I already figured out how to store just a few points using delay blocks and a custom block which sends the data in a loop. But now I have to store more data (100 numbers or so). I already tried to use Stateflow and write them in an array but I didn't find a way to change the length of the array or get the length during simulation. I can't imagine that nobody had a similar problem before.
Would be really great if anybody could give a hint or even an example.
Thanks
Erik
0 件のコメント
回答 (1 件)
Kaustubha Govind
2012 年 5 月 4 日
0 投票
In order to change the size of a signal during simulation, you need to use variable-size signals. See Example: Computing Output Based on Size of Input Signal.
For a fixed-size, if you have access to the DSP Blockset, the Buffer block might be an option.
0 件のコメント
この質問は閉じられています。
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!