simulation of a continuous data input (in Simulink)

1 次查看(过去 30 天)
Hello,
i wrote an algorithmn in matlab to analyse data from excel. There just the time and the velocity which is a measurement from a sensor.
Now i want to apply the algorithmn on just 50 data points from the big data sheet. After that (maybe after 1 sec) the next 50 data points should be analysed with the algorithm and so on. The result should be somewhere saved and will be always added with the new result.
I think i can use the algorithmn in simulink with a matlab function block.
Unfortunately i do not know how i can simulate an continuous data input.
Thank you for help!

采纳的回答

Naman Bhaia
Naman Bhaia 2019-2-8
What I understood from is that you would like to gradually read-in data to an algorithm.
One way to read data into Simulink is with a From Spreadsheet block. Below is a link with more information about this block:
Once the data has been read into Simulink, it is possible to use a Buffer block in order to store it. Below is a link with more information about this block:
The Buffer block will store data up to a fixed limit. Once that limit is reached, that data will all be released simultaneously.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Sources 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by