how to generate one signal from a vector data in simulink

4 次查看(过去 30 天)
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.
  1 个评论
Bilal
Bilal 2016-3-4
Yes, this is what i want to do but the problem is that i can't update the values each time in repeating sequence block. Actually I have like 3 values that are coming from user defined block after some calculation and the get updated after one cycle, I tried to edit the repeating sequence block so that i can input these valves it to but i am unable to do so. please help.

请先登录,再进行评论。

采纳的回答

Sebastian Castro
Sebastian Castro 2016-2-25
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
  1 个评论
Bilal
Bilal 2016-3-10
Yes, this is what i want to do but the problem is that i can't update the values each time in repeating sequence block. Actually I have like 3 values that are coming from user defined block after some calculation and the get updated after one cycle, I tried to edit the repeating sequence block so that i can input these valves it to but i am unable to do so. please help.

请先登录,再进行评论。

更多回答(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