How do I offset a repeating sequence?
古いコメントを表示
Hello,
I have two sawtooth functions using two "repeating sequence" blocks. I want to offset the second one by one half of a period (in this case, 15 seconds - one period is 30 seconds).
So then, initially, the first sawtooth would start at 0, and the second would start at 0.5, since the output of each sawtooth is between 0 and 1
I have tried using the "Transport Delay" block to delay the second function, but this gives a value of 0 until the 15 second mark, and for some reason it only allows one period of the sawtooth to pass. Then it just gives a value of 0 constantly.
Any help would be appreciated. Thank you.
3 件のコメント
David Miller
2016 年 7 月 2 日
If f(x) and g(x) are your two saw tooth functions and you would like f(x) and g(x) to be out of phase by dx, can you not just shift the domain of one of them? g(x) -> g(x+dx), here dx is 15 seconds.
HayMakerMaker
2016 年 7 月 5 日
編集済み: HayMakerMaker
2016 年 7 月 5 日
HayMakerMaker
2016 年 7 月 5 日
編集済み: HayMakerMaker
2016 年 7 月 5 日
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で General Applications についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

