How I can generate a continuous signal using a solver with fixed step size?
1 次查看(过去 30 天)
显示 更早的评论
Hello people! In my simulation I must use a fixed step size (0.01 s) with the solver ode4 (Runge-Kutta). The input to my model is a constant block. I want that this block run each 0.2 second (I know how to do this) and I want a signal longer than the fixed step size..I mean I want a signal of the duration of 0.3 s, a continuous signal 0.3 s long. Is it possible? Thank you veru much, Fabrizio
2 个评论
Ryan G
2013-5-1
Why don't you increase the fixed step size? What you're looking for may depend very much on your model and setup. Do you know what continuous vs discrete means here? If your not processing signals faster than 0.01 seconds than you may not need to run any faster. Again, this really depends on your model.
Another option is a for-iterator subsystem.
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 General Applications 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!