Changing incoming vectors (bits) and reshaping them without buffer delay on Simulink
2 views (last 30 days)
Show older comments
Hello I am trying to take stream of bits (vector) and I'd like to perform some calculation
to check some condition.
On my setup, I have buffer then a custom MATLAB Function block.
In this way, I was able to 'cut' the vector (via buffer) and check conditions for each 'cut.'
And since there is a delay in buffer operation, for the first 'cut' the values are the initial condition
that I defined in buffer block, which I can simply discard during analysis.
Now my question is, is there a way to buffer my input vector without having those unwanted 'cut?'
In other words, is there a way to stack my incoming vector real time and at certain number of elements,
simply do my calculation (without buffer)?
I can live with the buffer block, but I think, as my model gets more detailed and sophisticated, it might cause
some problem in the future and I want to get rid of the possibility.
Thanks!
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!