Suggestions to generate a pulse train in Simulink

2 views (last 30 days)
Hi! Apologies if this is quite a simple thing. I want to generate a series of pulse trains to stimulate an animal's whiskers. I was able to do this using a script, but I want to do this using Simulink blocks. The pulse train should be something like this:
I can get a simple pulse working using the pulse generator block, but I don't know how to include "nested" pulses.
  1 Comment
Luis Cobar
Luis Cobar on 28 Jan 2022
A bit silly, but I figured it out after tinkering some more. In case is useful for anyone else, I solved this using two logic gate blocks. Please check the following figure:

Sign in to comment.

Answers (0)

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!