title: How to hold impulse signal in continuous time? (Simulink)
body: <p>I have a hard time getting an ideal step signal triggered by an impulse. I'm not able to hold the impulse at its peak.</p>
  
  <p><img src="https://i.stack.imgur.com/UCKCX.jpg" alt="enter image description here"></p>
  
  <p>In the pictures can be seen that I have some logic producing an ideal pulse with <code>width = stepsize</code> and <code>amplitude = 1</code> (Scope 1) - but I need a step of the same amplitude. I tried a lot of stuff (memory elements, adding constants and so on) and came up with the idea above. I don't understand why it isn't working? Why don't I get <code>amplitude = 1</code> for my step (Scope 2)?</p>
  
  <p>Isn't there a better solution?</p>
  
  <p>some facts:</p>
  
  <ul>
  <li>I just have the basic Simulink</li>
  <li>it's a time-continuous model</li>
  <li><code>convert</code> is just inverting boolean to double to satisfy the switch conditions</li>
  </ul>
  
  <p>Edit: <strong>It is very important that I only get a step for the first pulse, if it ever happens, that there is another pulse, the output should remain 1.</strong> (well that could be easily solved with a saturation block)</p>