MATLAB: How to generate one signal from a vector data in simulink

simulink

I am having a problem like if you have 10 data points say in a vector and you use simulink constant block it shows 10 continuous lines for this. how can i just create a one continuous waveform from it.

Best Answer

My understanding if your question is that you want those 10 values to make up one period of a periodic waveform, right?
If so, check out the Repeating Sequence block: http://www.mathworks.com/help/simulink/slref/repeatingsequence.html
The block above generates a continuous-time signal so you have to also specify time values. There are also "Repeating Sequence Interpolated" and "Repeating Sequence Stair" blocks that may better meet your needs.
- Sebastian
Related Question