Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Of course there are "gaps". The composite function is identically zero for all t&lt;2184, and for all t>7440. The relationships can only be non-zero inside of that interval. And you have not chosen a function that is zero at the endpoints, so how can you expect there not to be "gaps"?</p> <p>What values does your function take on at the endpoints of the interval?</p> <pre><code>&gt;&gt; t = [2184 7440]; &gt;&gt; (26.045792 + 13.075558*sin(0.0008531214*t - 2.7773943)) ans = 15.689 20.616 </code></pre> <p>So look at the hat function part of this. I'll be lazy and use ezplot.</p> <pre><code>&gt;&gt; ezplot(@(t) ((heaviside(t-2184))-(heaviside(t-7440))),[0,8784]) </code></pre> <p><img src="https://i.stack.imgur.com/z3u6A.jpg" alt="alt text"></p> <p>Now, combine this, multiplying it by a trig piece, and of course the result is identically zero outside of that domain.</p> <pre><code>&gt;&gt; ezplot(@(t) (26.045792 + 13.075558*sin(0.0008531214*t - 2.7773943)).*((heaviside(t-2184))-(heaviside(t-7440))),[0,8784]) </code></pre> <p><img src="https://i.stack.imgur.com/mJV0J.jpg" alt="alt text"></p> <p>But if your goal is some sort of continuous function across the two chosen points in the hat function, you need to chose the trig part such that it is zero at those same two points. Mathematics is not spelled mathemagics. Wishing that you get a continuous function will not make it so.</p> <p>So is your real question how to chose that internal piece (segment) as one such that the final result is continuous? If so, then we need to know why you have chosen the arbitrary constants in there. Surely these numbers, {26.045792, 13.075558, 0.0008531214, 2.7773943} all must have some significance to you. And if they are important, then how can we possibly make the result a continuous function?</p> <p>Perhaps, and I'm just guessing here, you want some other result out of this, such that the function is not identically zero outside of those bounds. Perhaps you wish to extrapolate as a constant function outside of those points. But to help you, you must help us.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload