simulation of a continuous data input (in Simulink)

조회 수: 4 (최근 30일)
Tom Bedkowski
Tom Bedkowski 2019년 1월 30일
답변: Naman Bhaia 2019년 2월 8일
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